We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 281ce3d commit 09971acCopy full SHA for 09971ac
stdlib/public/core/Result.swift
@@ -112,8 +112,8 @@ public enum Result<Success, Failure: Error> {
112
///
113
/// - Parameter transform: A closure that takes the success value of the
114
/// instance.
115
- /// - Returns: A `Result` instance with the result of evaluating `transform`
116
- /// as the new failure value if this instance represents a failure.
+ /// - Returns: A `Result` instance, either from the closure or the previous
+ /// `.failure`.
117
@inlinable
118
public func flatMap<NewSuccess>(
119
_ transform: (Success) -> Result<NewSuccess, Failure>
0 commit comments