diff --git a/library/core/src/result.rs b/library/core/src/result.rs index c99de923d956b..4c6dc4bba4377 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -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 = good_result.map(|i| i + 1); //! let bad_result: Result = bad_result.map_err(|i| i - 1); //! assert_eq!(good_result, Ok(11));