Update library/core/src/result.rs

Co-authored-by: joboet <jonasboettiger@icloud.com>
This commit is contained in:
Renato A 2024-05-15 08:07:16 -03:00 committed by GitHub
parent 4a953dc5ff
commit e1611aa690
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));