about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJane Lusby <jlusby42@gmail.com>2022-04-18 16:31:13 -0700
committerGitHub <noreply@github.com>2022-04-18 16:31:13 -0700
commiteca7dd20d595c94cc43d59aaf2067ffcc0b86483 (patch)
treef8c6d3f963d7dffe1fabbbdf66b1e4a1c08dcfb9
parent5d98acb19cd9a9d77f6e931a26cdb846723b65f2 (diff)
Update library/core/src/result.rs
Co-authored-by: Emil Thorenfeldt <emt@magenta.dk>
-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 7cbe2213b22..47e718b6a42 100644
--- a/library/core/src/result.rs
+++ b/library/core/src/result.rs
@@ -1052,7 +1052,7 @@ impl<T, E> Result<T, E> {
     ///
     /// ```should_panic
     /// let path = std::env::var("IMPORTANT_PATH")
-    ///     .expect("env variable `IMPORTANT_PATH` is always be set by `wrapper_script.sh`");
+    ///     .expect("env variable `IMPORTANT_PATH` is always set by `wrapper_script.sh`");
     /// ```
     ///
     /// The "expect as error message" style has the advantage of giving a more user friendly error