mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Mention env
and option_env
macros in std::env::var
docs
This commit is contained in:
parent
91a0e1604f
commit
17dd2b179c
@ -202,6 +202,9 @@ impl fmt::Debug for VarsOs {
|
||||
/// Returns [`VarError::NotUnicode`] if the variable's value is not valid
|
||||
/// Unicode. If this is not desired, consider using [`var_os`].
|
||||
///
|
||||
/// Use [`env!`] or [`option_env!`] instead if you want to check environment
|
||||
/// variables at compile time.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user