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.
2 parents 92933a1 + 09971ac commit c5a7512Copy full SHA for c5a7512
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