Skip to content

Commit 7ea09a9

Browse files
authored
Fix comments on _compactMap(_:)
1 parent 9581918 commit 7ea09a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/SequenceAlgorithms.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,8 @@ extension Sequence {
794794
return try _compactMap(transform)
795795
}
796796

797-
// The implementation of flatMap accepting a closure with an optional result.
798-
// Factored out into a separate functions in order to be used in multiple
797+
// The implementation of compactMap accepting a closure with an optional result.
798+
// Factored out into a separate function in order to be used in multiple
799799
// overloads.
800800
@inlinable // protocol-only
801801
@inline(__always)

0 commit comments

Comments
 (0)