about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRenato A <63110187+prorealize@users.noreply.github.com>2024-05-15 08:07:16 -0300
committerGitHub <noreply@github.com>2024-05-15 08:07:16 -0300
commite1611aa690ccfa2e38b0041df90bca424809226d (patch)
tree3b9f6ab8c172caee14693ecb47f3fdeb2d517876
parent4a953dc5fffbd7dad1dd4ab278d57db11dfd4cf8 (diff)
downloadrust-e1611aa690ccfa2e38b0041df90bca424809226d.tar.gz
rust-e1611aa690ccfa2e38b0041df90bca424809226d.zip
Update library/core/src/result.rs
Co-authored-by: joboet <jonasboettiger@icloud.com>
-rw-r--r--library/core/src/result.rs2
1 files changed, 1 insertions, 1 deletions
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<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));