diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 85e614ab47e..810d0e73ff3 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -434,8 +434,8 @@ macro_rules! format_args( ($closure:expr, $fmt:expr $($args:tt)*) => ({ /// # Example /// /// ```rust - /// let home: &'static str = env!("HOME"); - /// println!("the home directory at the time of compiling was: {}", home); + /// let path: &'static str = env!("PATH"); + /// println!("the $PATH variable at the time of compiling was: {}", path); /// ``` #[macro_export] macro_rules! env( ($name:expr) => ({ /* compiler built-in */ }) )