We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb4a43 commit 474d340Copy full SHA for 474d340
src/libstd/macros.rs
@@ -434,8 +434,8 @@ pub mod builtin {
434
/// # Example
435
///
436
/// ```rust
437
- /// let home: &'static str = env!("HOME");
438
- /// 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);
439
/// ```
440
#[macro_export]
441
macro_rules! env( ($name:expr) => ({ /* compiler built-in */ }) )
0 commit comments