Update env.rs

Remove `Errors` section from `var_os` documentation
This commit is contained in:
fleetingbytes 2023-04-03 16:09:15 +02:00 committed by GitHub
parent f13ccefb5b
commit 9f1a3a131b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,16 +242,6 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
/// is valid Unicode. If you want to have an error on invalid UTF-8,
/// use the [`var`] function instead.
///
/// # Errors
///
/// This function returns an error if the environment variable isn't set.
///
/// This function may return an error if the environment variable's name contains
/// the equal sign character (`=`) or the NUL character.
///
/// This function may return an error if the environment variable's value contains
/// the NUL character.
///
/// # Examples
///
/// ```