From 474d34043e12b3a81f47c3709beff14e80088e55 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 16 Sep 2014 13:51:01 -0700 Subject: [PATCH] Use PATH instead of HOME in env! example HOME does not exist under typical windows environments. --- src/libstd/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ 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 */ }) )