Skip to content

Commit 76a9f68

Browse files
authored
Merge pull request swiftlang#31495 from valeriyvan/FixExampleSnippetsMutableCollection.swift
2 parents b312615 + 9eab9f3 commit 76a9f68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/MutableCollection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ where SubSequence: MutableCollection
9898
/// the index of one of the strings in the slice, and then using that index
9999
/// in the original array.
100100
///
101-
/// let streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"]
101+
/// var streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"]
102102
/// let streetsSlice = streets[2 ..< streets.endIndex]
103103
/// print(streetsSlice)
104104
/// // Prints "["Channing", "Douglas", "Evarts"]"
@@ -222,7 +222,7 @@ extension MutableCollection {
222222
/// the index of one of the strings in the slice, and then using that index
223223
/// in the original array.
224224
///
225-
/// let streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"]
225+
/// var streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"]
226226
/// let streetsSlice = streets[2 ..< streets.endIndex]
227227
/// print(streetsSlice)
228228
/// // Prints "["Channing", "Douglas", "Evarts"]"

0 commit comments

Comments
 (0)