Update library/core/src/result.rs

Co-authored-by: Emil Thorenfeldt <emt@magenta.dk>
This commit is contained in:
Jane Lusby 2022-04-18 16:31:13 -07:00 committed by GitHub
parent 5d98acb19c
commit eca7dd20d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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