diff --git a/stdlib/public/core/Join.swift b/stdlib/public/core/Join.swift index d1c6e43613719..d2bac3685c0c9 100644 --- a/stdlib/public/core/Join.swift +++ b/stdlib/public/core/Join.swift @@ -168,7 +168,7 @@ extension Sequence where Iterator.Element : Sequence { /// sequence's elements. /// - Returns: The joined sequence of elements. /// - /// - SeeAlso: `flatten()` + /// - SeeAlso: `joined()` public func joined( separator: Separator ) -> JoinedSequence diff --git a/stdlib/public/core/SequenceAlgorithms.swift.gyb b/stdlib/public/core/SequenceAlgorithms.swift.gyb index 5a26b4f88d9f8..e1ede873956d2 100644 --- a/stdlib/public/core/SequenceAlgorithms.swift.gyb +++ b/stdlib/public/core/SequenceAlgorithms.swift.gyb @@ -615,7 +615,7 @@ extension Sequence { /// // [1, 2, 2, 3, 3, 3, 4, 4, 4, 4] /// /// In fact, `s.flatMap(transform)` is equivalent to - /// `Array(s.map(transform).flatten())`. + /// `Array(s.map(transform).joined())`. /// /// - Parameter transform: A closure that accepts an element of this /// sequence as its argument and returns a sequence or collection. @@ -623,7 +623,7 @@ extension Sequence { /// /// - Complexity: O(*m* + *n*), where *m* is the length of this sequence /// and *n* is the length of the result. - /// - SeeAlso: `flatten()`, `map(_:)` + /// - SeeAlso: `joined()`, `map(_:)` public func flatMap( _ transform: @noescape (${GElement}) throws -> SegmentOfResult ) rethrows -> [SegmentOfResult.${GElement}] {