Use PATH instead of HOME in env! example
HOME does not exist under typical windows environments.
This commit is contained in:
parent
4bb4a43917
commit
474d34043e
@ -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 */ }) )
|
||||
|
Loading…
Reference in New Issue
Block a user