Skip to content

Commit 5500688

Browse files
authored
Fixes example snippet in ExistentialCollection.swift (#31462)
* Fixes example snippet in ExistentialCollection.swift * Removes extra parentheses
1 parent 2938466 commit 5500688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/ExistentialCollection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public struct AnyIterator<Element> {
5151
/// func digits() -> AnyIterator<String> {
5252
/// let lazyStrings = (0..<10).lazy.map { String($0) }
5353
/// let iterator:
54-
/// LazyMapIterator<IndexingIterator<Range<Int>>, String>
54+
/// LazyMapSequence<Range<Int>, String>.Iterator
5555
/// = lazyStrings.makeIterator()
5656
///
5757
/// return AnyIterator(iterator)

0 commit comments

Comments
 (0)