Skip to content

Commit 6b11135

Browse files
authored
Fix a typo in the name of the transformingFirstLetter method (#90)
### Motivation Correct grammar. ### Modifications Update method name inside of `fileprivate extension`. ### Result Grammar fixed. ### Test Plan n/a
1 parent cc8e0ad commit 6b11135

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/_OpenAPIGeneratorCore/Extensions/String.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ extension String {
2424

2525
/// Returns a copy of the string with the first letter uppercased.
2626
var uppercasingFirstLetter: String {
27-
tranformingFirstLetter { $0.uppercased() }
27+
transformingFirstLetter { $0.uppercased() }
2828
}
2929

3030
/// Returns a copy of the string with the first letter lowercased.
3131
var lowercasingFirstLetter: String {
32-
tranformingFirstLetter { $0.lowercased() }
32+
transformingFirstLetter { $0.lowercased() }
3333
}
3434
}
3535

@@ -44,7 +44,7 @@ fileprivate extension String {
4444
/// Returns a copy of the string with the first letter modified by
4545
/// the specified closure.
4646
/// - Parameter transformation: A closure that modifies the first letter.
47-
func tranformingFirstLetter<T>(_ transformation: (Character) -> T) -> String where T: StringProtocol {
47+
func transformingFirstLetter<T>(_ transformation: (Character) -> T) -> String where T: StringProtocol {
4848
guard let firstLetterIndex = self.firstIndex(where: \.isLetter) else {
4949
return self
5050
}

0 commit comments

Comments
 (0)