Skip to content

Commit 2a9231d

Browse files
committed
Fix formatting
1 parent 0c3dc30 commit 2a9231d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/GRPCProtobufCodeGen/CamelCaser.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ package struct CamelCaser {
2626
return input
2727
} else if indexOfFirstLowercase == input.index(after: input.startIndex) {
2828
// The second character in `input` is lower case. As in: "ImportCSV".
29-
return input[input.startIndex].lowercased() + input[indexOfFirstLowercase...] // -> "importCSV"
29+
// returns "importCSV"
30+
return input[input.startIndex].lowercased() + input[indexOfFirstLowercase...]
3031
} else {
3132
// The first lower case character is further within `input`. Tentatively, `input` begins
3233
// with one or more abbreviations. Therefore, the last encountered upper case character
@@ -35,7 +36,8 @@ package struct CamelCaser {
3536
let leadingAbbreviation = input[..<input.index(before: indexOfFirstLowercase)]
3637
let followingWords = input[input.index(before: indexOfFirstLowercase)...]
3738

38-
return leadingAbbreviation.lowercased() + followingWords // -> "foobarImportCSV"
39+
// returns "foobarImportCSV"
40+
return leadingAbbreviation.lowercased() + followingWords
3941
}
4042
}
4143
}

0 commit comments

Comments
 (0)