Skip to content

Commit 35e8978

Browse files
authored
Merge pull request #31500 from valeriyvan/FixExampleSnippetReverse.swift
Fixes example snippet in Reverse.swift
2 parents 291ddb7 + 7d8c754 commit 35e8978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Reverse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ extension ReversedCollection {
156156
/// // name[aIndex] == "a"
157157
///
158158
/// let reversedName = name.reversed()
159-
/// let i = ReversedIndex<String>(aIndex)
159+
/// let i = ReversedCollection<String>.Index(aIndex)
160160
/// // reversedName[i] == "r"
161161
///
162162
/// The element at the position created using `ReversedIndex<...>(aIndex)` is

0 commit comments

Comments
 (0)