1
Fork 0

Say that std::env::{set_var, unset_var} *may* panic

Previously the documentation suggested that the documentation about the
panics are guarantees.
This commit is contained in:
Tobias Bucher 2015-10-25 20:03:42 +00:00
parent 5794950c2d
commit fe2a47b88a

View file

@ -262,8 +262,9 @@ impl Error for VarError {
/// ///
/// # Panics /// # Panics
/// ///
/// This function panics if the `key` string is empty or contains an ASCII /// This function may panic if `key` is empty, contains an ASCII equals sign
/// equals sign. /// `'='` or the NUL character `'\0'`, or when the value contains the NUL
/// character.
/// ///
/// # Examples /// # Examples
/// ///
@ -299,8 +300,9 @@ fn _set_var(k: &OsStr, v: &OsStr) {
/// ///
/// # Panics /// # Panics
/// ///
/// This function panics if the `key` string is empty or contains an ASCII /// This function may panic if `key` is empty, contains an ASCII equals sign
/// equals sign. /// `'='` or the NUL character `'\0'`, or when the value contains the NUL
/// character.
/// ///
/// # Examples /// # Examples
/// ///