We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a953dc commit e1611aaCopy full SHA for e1611aa
library/core/src/result.rs
@@ -51,7 +51,7 @@
51
//! assert!(good_result.is_ok() && !good_result.is_err());
52
//! assert!(bad_result.is_err() && !bad_result.is_ok());
53
//!
54
-//! // `map` and `map_err` consume the `Result` and produces another.
+//! // `map` and `map_err` consume the `Result` and produce another.
55
//! let good_result: Result<i32, i32> = good_result.map(|i| i + 1);
56
//! let bad_result: Result<i32, i32> = bad_result.map_err(|i| i - 1);
57
//! assert_eq!(good_result, Ok(11));
0 commit comments