Skip to content

Commit 07a8c39

Browse files
[stdlib] Use double space as sentence separator in IteratorType.next() docs.
1 parent 020841d commit 07a8c39

14 files changed

+17
-17
lines changed

stdlib/public/core/Algorithm.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public struct EnumeratedIterator<
8585
public typealias Element = (offset: Int, element: Base.Element)
8686

8787
/// Advance to the next element and return it, or `nil` if no next element
88-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
88+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
8989
public mutating func next() -> Element? {
9090
guard let b = _base.next() else { return nil }
9191
defer { _count += 1 }

stdlib/public/core/Collection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public struct IndexingIterator<Elements : Indexable>
8282
}
8383

8484
/// Advance to the next element and return it, or `nil` if no next element
85-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
85+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
8686
public mutating func next() -> Elements._Element? {
8787
if _position == _elements.endIndex { return nil }
8888
let element = _elements[_position]

stdlib/public/core/CollectionOfOne.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public struct IteratorOverOne<Element> : IteratorProtocol, Sequence {
2020
}
2121

2222
/// Advance to the next element and return it, or `nil` if no next element
23-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
23+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
2424
///
2525
/// - Precondition: `next()` has not been applied to a copy of `self`
2626
/// since the copy was made.

stdlib/public/core/ExistentialCollection.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public struct AnyIterator<Element> : IteratorProtocol {
6767
}
6868

6969
/// Advance to the next element and return it, or `nil` if no next element
70-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
70+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
7171
public func next() -> Element? {
7272
return _box.next()
7373
}
@@ -93,7 +93,7 @@ internal class _AnyIteratorBoxBase<Element>
9393
: _AnyIteratorBase, IteratorProtocol {
9494

9595
/// Advance to the next element and return it, or `nil` if no next element
96-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
96+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
9797
///
9898
/// - Note: Subclasses must override this method.
9999
internal func next() -> Element? { _abstract() }

stdlib/public/core/Flatten.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public struct FlattenIterator<
2828
}
2929

3030
/// Advance to the next element and return it, or `nil` if no next element
31-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
31+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
3232
///
3333
/// - Precondition: `next()` has not been applied to a copy of `self`
3434
/// since the copy was made.

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3984,7 +3984,7 @@ public struct ${Self}Iterator<${TypeParametersDecl}> : IteratorProtocol {
39843984
}
39853985

39863986
/// Advance to the next element and return it, or `nil` if no next element
3987-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
3987+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
39883988
public mutating func next() -> ${Sequence}? {
39893989
if _fastPath(_guaranteedNative) {
39903990
return _nativeNext()

stdlib/public/core/Join.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct JoinedIterator<
3737
}
3838

3939
/// Advance to the next element and return it, or `nil` if no next element
40-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
40+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
4141
public mutating func next() -> Base.Element.Iterator.Element? {
4242
repeat {
4343
switch _state {

stdlib/public/core/Map.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public struct LazyMapIterator<
1717
Base : IteratorProtocol, Element
1818
> : IteratorProtocol, Sequence {
1919
/// Advance to the next element and return it, or `nil` if no next element
20-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
20+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
2121
///
2222
/// - Precondition: `next()` has not been applied to a copy of `self`
2323
/// since the copy was made.

stdlib/public/core/Range.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct RangeIterator<
2323
}
2424

2525
/// Advance to the next element and return it, or `nil` if no next element
26-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
26+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
2727
public mutating func next() -> Element? {
2828
if startIndex == endIndex { return nil }
2929
let element = startIndex

stdlib/public/core/Sequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public protocol IteratorProtocol {
2727
associatedtype Element
2828

2929
/// Advance to the next element and return it, or `nil` if no next element
30-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
30+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
3131
///
3232
/// - Precondition: `next()` has not been applied to a copy of `self`
3333
/// since the copy was made.
@@ -635,7 +635,7 @@ public struct IteratorSequence<
635635
}
636636

637637
/// Advance to the next element and return it, or `nil` if no next element
638-
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
638+
/// exists. Once `nil` has been returned, all subsequent calls return `nil`.
639639
///
640640
/// - Precondition: `next()` has not been applied to a copy of `self`
641641
/// since the copy was made.

0 commit comments

Comments
 (0)