Update env.rs
Remove `Errors` section from `var_os` documentation
This commit is contained in:
parent
f13ccefb5b
commit
9f1a3a131b
1 changed files with 0 additions and 10 deletions
|
@ -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,
|
/// is valid Unicode. If you want to have an error on invalid UTF-8,
|
||||||
/// use the [`var`] function instead.
|
/// 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
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue