diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-09 12:44:45 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-09 12:44:45 -0700 |
| commit | a7872b3c1e0ae669991ba54886717d46b1ffd4be (patch) | |
| tree | 761cde68e40f0eb18f21509d21edc5d8b4252727 /src/libstd | |
| parent | e55f64f99726a44283211d91a702081fe4a1855b (diff) | |
| download | rust-a7872b3c1e0ae669991ba54886717d46b1ffd4be.tar.gz rust-a7872b3c1e0ae669991ba54886717d46b1ffd4be.zip | |
std: Read HOME instead of USER
Apparently one of the linux bots doesn't have the USER variable defined, and this fix will likely land more quickly than a fix to the bots.
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 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 */ }) ) |
