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.
env
option_env
std::env::var
1 parent 91a0e16 commit 17dd2b1Copy full SHA for 17dd2b1
library/std/src/env.rs
@@ -202,6 +202,9 @@ impl fmt::Debug for VarsOs {
202
/// Returns [`VarError::NotUnicode`] if the variable's value is not valid
203
/// Unicode. If this is not desired, consider using [`var_os`].
204
///
205
+/// Use [`env!`] or [`option_env!`] instead if you want to check environment
206
+/// variables at compile time.
207
+///
208
/// # Examples
209
210
/// ```
0 commit comments