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.
This commit is contained in:
commit
5c63506bd8
|
@ -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.
|
/// process.
|
||||||
///
|
///
|
||||||
/// Note that while concurrent access to environment variables is safe in Rust,
|
/// Note that while concurrent access to environment variables is safe in Rust,
|
||||||
|
@ -310,9 +310,8 @@ impl Error for VarError {
|
||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// This function may panic if `key` is empty, contains an ASCII equals sign
|
/// 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
|
/// or the NUL character `'\0'`, or when `value` contains the NUL character.
|
||||||
/// character.
|
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue