From e4dc0ff656b17187e26f2d58e3d7ffdc4867ec02 Mon Sep 17 00:00:00 2001 From: Michal Srutek Date: Mon, 26 Jun 2023 13:32:30 +0200 Subject: [PATCH] Fix transforming typo --- Sources/_OpenAPIGeneratorCore/Extensions/String.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/_OpenAPIGeneratorCore/Extensions/String.swift b/Sources/_OpenAPIGeneratorCore/Extensions/String.swift index 3aac53fc..13b9f026 100644 --- a/Sources/_OpenAPIGeneratorCore/Extensions/String.swift +++ b/Sources/_OpenAPIGeneratorCore/Extensions/String.swift @@ -24,12 +24,12 @@ extension String { /// Returns a copy of the string with the first letter uppercased. var uppercasingFirstLetter: String { - tranformingFirstLetter { $0.uppercased() } + transformingFirstLetter { $0.uppercased() } } /// Returns a copy of the string with the first letter lowercased. var lowercasingFirstLetter: String { - tranformingFirstLetter { $0.lowercased() } + transformingFirstLetter { $0.lowercased() } } } @@ -44,7 +44,7 @@ fileprivate extension String { /// Returns a copy of the string with the first letter modified by /// the specified closure. /// - Parameter transformation: A closure that modifies the first letter. - func tranformingFirstLetter(_ transformation: (Character) -> T) -> String where T: StringProtocol { + func transformingFirstLetter(_ transformation: (Character) -> T) -> String where T: StringProtocol { guard let firstLetterIndex = self.firstIndex(where: \.isLetter) else { return self }