diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 805da8021ed..58f65c90b3b 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -425,8 +425,8 @@ pub mod builtin { /// # Example /// /// ```rust - /// let user: &'static str = env!("USER"); - /// println!("the user who compiled this code is: {}", user); + /// let home: &'static str = env!("HOME"); + /// println!("the home directory at the time of compiling was: {}", home); /// ``` #[macro_export] macro_rules! env( ($name:expr) => ({ /* compiler built-in */ }) )