diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2021-07-24 09:52:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-24 09:52:00 -0700 |
| commit | 5c63506bd819c9703493eb783edf5f29659d2301 (patch) | |
| tree | 4780476a6c1079c74d068c4a6042a4706cc9cba6 | |
| parent | c673d3fed07aafa77bba3a0db04aa9acb56353e1 (diff) | |
| parent | 74f01a4bbe441816aa5de489ca87f77d3474af37 (diff) | |
| download | rust-5c63506bd819c9703493eb783edf5f29659d2301.tar.gz rust-5c63506bd819c9703493eb783edf5f29659d2301.zip | |
Rollup merge of #87395 - ericonr:patch-1, r=joshtriplett
Clear up std::env::set_var panic section. The "K" parameter was being referred to as "key", which wasn't introduced anywhere.
| -rw-r--r-- | library/std/src/env.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index 64f88c1aba6..5709d97d643 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -294,7 +294,7 @@ impl Error for VarError { } } -/// Sets the environment variable `k` to the value `v` for the currently running +/// Sets the environment variable `key` to the value `value` for the currently running /// process. /// /// Note that while concurrent access to environment variables is safe in Rust, @@ -310,9 +310,8 @@ impl Error for VarError { /// /// # Panics /// -/// This function may panic if `key` is empty, contains an ASCII equals sign -/// `'='` or the NUL character `'\0'`, or when the value contains the NUL -/// character. +/// This function may panic if `key` is empty, contains an ASCII equals sign `'='` +/// or the NUL character `'\0'`, or when `value` contains the NUL character. /// /// # Examples /// |
