Skip to content

Commit 9f1a3a1

Browse files
Update env.rs
Remove `Errors` section from `var_os` documentation
1 parent f13ccef commit 9f1a3a1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

library/std/src/env.rs

-10
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,6 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
242242
/// is valid Unicode. If you want to have an error on invalid UTF-8,
243243
/// use the [`var`] function instead.
244244
///
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-
///
255245
/// # Examples
256246
///
257247
/// ```

0 commit comments

Comments
 (0)