Skip to content

Commit 6ff4f79

Browse files
committed
Corrected type variable output T -> U in Result::map_or_else
1 parent 3eda905 commit 6ff4f79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/result.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl<T, E> Result<T, E> {
470470
}
471471
}
472472

473-
/// Maps a `Result<T, E>` to `T` by applying a function to a
473+
/// Maps a `Result<T, E>` to `U` by applying a function to a
474474
/// contained [`Ok`] value, or a fallback function to a
475475
/// contained [`Err`] value.
476476
///

0 commit comments

Comments
 (0)