Use PATH instead of HOME in env! example

HOME does not exist under typical windows environments.
This commit is contained in:
Brian Anderson 2014-09-16 13:51:01 -07:00
parent 4bb4a43917
commit 474d34043e

View File

@ -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 */ }) )