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 Result { /// /// ```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