From 7ea09a9032f58570655f4b1d19fcd4b0504f8c25 Mon Sep 17 00:00:00 2001 From: Alex Binary Date: Sun, 24 May 2020 10:59:47 +0200 Subject: [PATCH] Fix comments on `_compactMap(_:)` --- stdlib/public/core/SequenceAlgorithms.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/public/core/SequenceAlgorithms.swift b/stdlib/public/core/SequenceAlgorithms.swift index 7b1e8f263e734..0af14d64144fa 100644 --- a/stdlib/public/core/SequenceAlgorithms.swift +++ b/stdlib/public/core/SequenceAlgorithms.swift @@ -794,8 +794,8 @@ extension Sequence { return try _compactMap(transform) } - // The implementation of flatMap accepting a closure with an optional result. - // Factored out into a separate functions in order to be used in multiple + // The implementation of compactMap accepting a closure with an optional result. + // Factored out into a separate function in order to be used in multiple // overloads. @inlinable // protocol-only @inline(__always)