Skip to content

Commit

Permalink
Corrected type variable output T -> U in Result::map_or_else
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbakel committed Aug 29, 2018
1 parent 3eda905 commit 6ff4f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ impl<T, E> Result<T, E> {
}
}

/// Maps a `Result<T, E>` to `T` by applying a function to a
/// Maps a `Result<T, E>` to `U` by applying a function to a
/// contained [`Ok`] value, or a fallback function to a
/// contained [`Err`] value.
///
Expand Down

0 comments on commit 6ff4f79

Please sign in to comment.