File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -262,8 +262,9 @@ impl Error for VarError {
262262///
263263/// # Panics
264264///
265- /// This function panics if the `key` string is empty or contains an ASCII
266- /// equals sign.
265+ /// This function may panic if `key` is empty, contains an ASCII equals sign
266+ /// `'='` or the NUL character `'\0'`, or when the value contains the NUL
267+ /// character.
267268///
268269/// # Examples
269270///
@@ -299,8 +300,9 @@ fn _set_var(k: &OsStr, v: &OsStr) {
299300///
300301/// # Panics
301302///
302- /// This function panics if the `key` string is empty or contains an ASCII
303- /// equals sign.
303+ /// This function may panic if `key` is empty, contains an ASCII equals sign
304+ /// `'='` or the NUL character `'\0'`, or when the value contains the NUL
305+ /// character.
304306///
305307/// # Examples
306308///
You can’t perform that action at this time.
0 commit comments