diff options
| author | fleetingbytes <7075397+fleetingbytes@users.noreply.github.com> | 2023-04-03 16:09:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-03 16:09:15 +0200 |
| commit | 9f1a3a131b3a32ac86f5d230357fff94b17c34cb (patch) | |
| tree | 4db32a8e3f4dc1ce67d44308efbe970700ae392d | |
| parent | f13ccefb5b35af3dbb40a7bbdd64a3216d949664 (diff) | |
| download | rust-9f1a3a131b3a32ac86f5d230357fff94b17c34cb.tar.gz rust-9f1a3a131b3a32ac86f5d230357fff94b17c34cb.zip | |
Update env.rs
Remove `Errors` section from `var_os` documentation
| -rw-r--r-- | library/std/src/env.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index 183f9ab3b08..3fcf96c761b 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -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 /// /// ``` |
