Skip to content

Commit d003072

Browse files
committed
Uncomment 'obsoleted: 5.0' on a flatMap variant
1 parent b3e883b commit d003072

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/public/core/MigrationSupport.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ extension UnsafeMutableRawBufferPointer {
535535
// Note that the second overload is declared on a more specific protocol.
536536
// See: test/stdlib/StringFlatMap.swift for tests.
537537
extension Sequence {
538-
@available(swift, deprecated: 4.1/*, obsoleted: 5.0*/, renamed: "compactMap(_:)",
538+
@available(swift, deprecated: 4.1, obsoleted: 5.1, renamed: "compactMap(_:)",
539539
message: "Please use compactMap(_:) for the case where closure returns an optional value")
540540
public func flatMap<ElementOfResult>(
541541
_ transform: (Element) throws -> ElementOfResult?
@@ -545,7 +545,8 @@ extension Sequence {
545545
}
546546

547547
extension Collection {
548-
@available(swift, deprecated: 4.1, obsoleted: 5.0, renamed: "compactMap(_:)", message: "Please use compactMap(_:) for the case where closure returns an optional value")
548+
@available(swift, deprecated: 4.1, obsoleted: 5.0, renamed: "compactMap(_:)",
549+
message: "Please use compactMap(_:) for the case where closure returns an optional value")
549550
public func flatMap(
550551
_ transform: (Element) throws -> String?
551552
) rethrows -> [String] {

0 commit comments

Comments
 (0)