Fix parameter names in std::env documentation.
The function parameters were renamed, but the documentation wasn't.
This commit is contained in:
parent
027187094e
commit
74f01a4bbe
@ -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
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user