Skip to content

Commit 45b25b9

Browse files
twostrawsnatecook1000
authored andcommitted
[Gardening] Changed lowercaseString to lowercased() in comments.
1 parent d06ba63 commit 45b25b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/core/Collection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ extension Collection {
12111211
/// to lowercase strings and then to count their characters.
12121212
///
12131213
/// let cast = ["Vivien", "Marlon", "Kim", "Karl"]
1214-
/// let lowercaseNames = cast.map { $0.lowercaseString }
1214+
/// let lowercaseNames = cast.map { $0.lowercased() }
12151215
/// // 'lowercaseNames' == ["vivien", "marlon", "kim", "karl"]
12161216
/// let letterCounts = cast.map { $0.count }
12171217
/// // 'letterCounts' == [6, 6, 3, 4]

stdlib/public/core/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ extension String {
13351335
var guts = _guts
13361336
guts.withMutableASCIIStorage(unusedCapacity: 0) { storage in
13371337
for i in 0..<storage._value.count {
1338-
// See the comment above in lowercaseString.
1338+
// See the comment above in lowercased.
13391339
let value = storage._value.start[i]
13401340
let isLower =
13411341
_asciiLowerCaseTable &>>

0 commit comments

Comments
 (0)