Skip to content

Commit

Permalink
Update library/core/src/result.rs
Browse files Browse the repository at this point in the history
Co-authored-by: joboet <jonasboettiger@icloud.com>
  • Loading branch information
prorealize and joboet authored May 15, 2024
1 parent 4a953dc commit e1611aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
//! assert!(good_result.is_ok() && !good_result.is_err());
//! assert!(bad_result.is_err() && !bad_result.is_ok());
//!
//! // `map` and `map_err` consume the `Result` and produces another.
//! // `map` and `map_err` consume the `Result` and produce another.
//! let good_result: Result<i32, i32> = good_result.map(|i| i + 1);
//! let bad_result: Result<i32, i32> = bad_result.map_err(|i| i - 1);
//! assert_eq!(good_result, Ok(11));
Expand Down

0 comments on commit e1611aa

Please sign in to comment.