From a0bf9b8e7124ca5d4577020f3d8b1a73bf67a3a5 Mon Sep 17 00:00:00 2001 From: Jacob Bandes-Storch Date: Thu, 28 Jul 2016 15:58:50 -0700 Subject: [PATCH] [stdlib] Update doc comments for SE-0133 --- stdlib/public/core/Join.swift | 2 +- stdlib/public/core/SequenceAlgorithms.swift.gyb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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}] {