Skip to content

Commit 7f4a44c

Browse files
authored
Merge pull request #5456 from philium/flatmap-documentation-error
2 parents c5bd6cd + e866fb4 commit 7f4a44c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/SequenceAlgorithms.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,10 @@ extension Sequence {
683683
///
684684
/// let possibleNumbers = ["1", "2", "three", "///4///", "5"]
685685
///
686-
/// let mapped: [Int?] = numbers.map { str in Int(str) }
686+
/// let mapped: [Int?] = possibleNumbers.map { str in Int(str) }
687687
/// // [1, 2, nil, nil, 5]
688688
///
689-
/// let flatMapped: [Int] = numbers.flatMap { str in Int(str) }
689+
/// let flatMapped: [Int] = possibleNumbers.flatMap { str in Int(str) }
690690
/// // [1, 2, 5]
691691
///
692692
/// - Parameter transform: A closure that accepts an element of this

0 commit comments

Comments
 (0)