diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 0ebca006c4c..e1f2f43673f 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -434,8 +434,8 @@ pub mod builtin { /// # 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 */ }) ) |
