]> git.lizzy.rs Git - rust.git/commitdiff
Update library/core/src/result.rs
authorJane Lusby <jlusby42@gmail.com>
Mon, 18 Apr 2022 23:31:13 +0000 (16:31 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Apr 2022 23:31:13 +0000 (16:31 -0700)
Co-authored-by: Emil Thorenfeldt <emt@magenta.dk>
library/core/src/result.rs

index 7cbe2213b22b2f3c0f5237bff05316360e8796d9..47e718b6a423daf5c3545f33a69aff1669928169 100644 (file)
@@ -1052,7 +1052,7 @@ pub fn iter_mut(&mut self) -> IterMut<'_, T> {
     ///
     /// ```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