From e1611aa690ccfa2e38b0041df90bca424809226d Mon Sep 17 00:00:00 2001 From: Renato A <63110187+prorealize@users.noreply.github.com> Date: Wed, 15 May 2024 08:07:16 -0300 Subject: [PATCH] Update library/core/src/result.rs Co-authored-by: joboet --- library/core/src/result.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/result.rs b/library/core/src/result.rs index c99de923d95..4c6dc4bba43 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));