Skip to content

Commit

Permalink
Rollup merge of rust-lang#87395 - ericonr:patch-1, r=joshtriplett
Browse files Browse the repository at this point in the history
Clear up std::env::set_var panic section.

The "K" parameter was being referred to as "key", which wasn't
introduced anywhere.
  • Loading branch information
Manishearth committed Jul 24, 2021
2 parents c673d3f + 74f01a4 commit 5c63506
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/std/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
///
Expand Down

0 comments on commit 5c63506

Please sign in to comment.