Skip to content

Commit a0bf9b8

Browse files
committed
[stdlib] Update doc comments for SE-0133
1 parent 8c7e75a commit a0bf9b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/core/Join.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ extension Sequence where Iterator.Element : Sequence {
168168
/// sequence's elements.
169169
/// - Returns: The joined sequence of elements.
170170
///
171-
/// - SeeAlso: `flatten()`
171+
/// - SeeAlso: `joined()`
172172
public func joined<Separator : Sequence>(
173173
separator: Separator
174174
) -> JoinedSequence<Self>

stdlib/public/core/SequenceAlgorithms.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,15 +615,15 @@ extension Sequence {
615615
/// // [1, 2, 2, 3, 3, 3, 4, 4, 4, 4]
616616
///
617617
/// In fact, `s.flatMap(transform)` is equivalent to
618-
/// `Array(s.map(transform).flatten())`.
618+
/// `Array(s.map(transform).joined())`.
619619
///
620620
/// - Parameter transform: A closure that accepts an element of this
621621
/// sequence as its argument and returns a sequence or collection.
622622
/// - Returns: The resulting flattened array.
623623
///
624624
/// - Complexity: O(*m* + *n*), where *m* is the length of this sequence
625625
/// and *n* is the length of the result.
626-
/// - SeeAlso: `flatten()`, `map(_:)`
626+
/// - SeeAlso: `joined()`, `map(_:)`
627627
public func flatMap<SegmentOfResult : Sequence>(
628628
_ transform: @noescape (${GElement}) throws -> SegmentOfResult
629629
) rethrows -> [SegmentOfResult.${GElement}] {

0 commit comments

Comments
 (0)