From eca7dd20d595c94cc43d59aaf2067ffcc0b86483 Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Mon, 18 Apr 2022 16:31:13 -0700 Subject: [PATCH] Update library/core/src/result.rs Co-authored-by: Emil Thorenfeldt --- 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 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