Skip to content

Commit 51eac53

Browse files
Tw1stFateCodaFi
authored andcommitted
fix minor mistake (#10839)
* fix minor mistake Use the `flatMap` method. Parameter transform: A closure that takes the unwrapped value, right? * revert unwrapped
1 parent abd711c commit 51eac53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Optional.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public enum Optional<Wrapped> : ExpressibleByNilLiteral {
182182
/// return overflowed ? nil : result
183183
/// }
184184
/// print(nonOverflowingSquare)
185-
/// // Prints "Optional(1746)"
185+
/// // Prints "Optional(1764)"
186186
///
187187
/// - Parameter transform: A closure that takes the unwrapped value
188188
/// of the instance.

0 commit comments

Comments
 (0)