We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f13ccef commit 9f1a3a1Copy full SHA for 9f1a3a1
library/std/src/env.rs
@@ -242,16 +242,6 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
242
/// is valid Unicode. If you want to have an error on invalid UTF-8,
243
/// use the [`var`] function instead.
244
///
245
-/// # Errors
246
-///
247
-/// This function returns an error if the environment variable isn't set.
248
249
-/// This function may return an error if the environment variable's name contains
250
-/// the equal sign character (`=`) or the NUL character.
251
252
-/// This function may return an error if the environment variable's value contains
253
-/// the NUL character.
254
255
/// # Examples
256
257
/// ```
0 commit comments