File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Sources/GRPCProtobufCodeGen Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ package struct CamelCaser {
26
26
return input
27
27
} else if indexOfFirstLowercase == input. index ( after: input. startIndex) {
28
28
// 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... ]
30
31
} else {
31
32
// The first lower case character is further within `input`. Tentatively, `input` begins
32
33
// with one or more abbreviations. Therefore, the last encountered upper case character
@@ -35,7 +36,8 @@ package struct CamelCaser {
35
36
let leadingAbbreviation = input [ ..< input. index ( before: indexOfFirstLowercase) ]
36
37
let followingWords = input [ input. index ( before: indexOfFirstLowercase) ... ]
37
38
38
- return leadingAbbreviation. lowercased ( ) + followingWords // -> "foobarImportCSV"
39
+ // returns "foobarImportCSV"
40
+ return leadingAbbreviation. lowercased ( ) + followingWords
39
41
}
40
42
}
41
43
}
You can’t perform that action at this time.
0 commit comments