about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-06-09 14:07:12 -0700
committerbors <bors@rust-lang.org>2014-06-09 14:07:12 -0700
commitb6146e652ae7f6d373d55dd021dc50cb00e0caf8 (patch)
tree761cde68e40f0eb18f21509d21edc5d8b4252727 /src/libstd
parente55f64f99726a44283211d91a702081fe4a1855b (diff)
parenta7872b3c1e0ae669991ba54886717d46b1ffd4be (diff)
downloadrust-b6146e652ae7f6d373d55dd021dc50cb00e0caf8.tar.gz
rust-b6146e652ae7f6d373d55dd021dc50cb00e0caf8.zip
auto merge of #14775 : alexcrichton/rust/fix-master, r=brson
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.rs4
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 */ }) )