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 {
262
262
///
263
263
/// # Panics
264
264
///
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.
267
268
///
268
269
/// # Examples
269
270
///
@@ -299,8 +300,9 @@ fn _set_var(k: &OsStr, v: &OsStr) {
299
300
///
300
301
/// # Panics
301
302
///
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.
304
306
///
305
307
/// # Examples
306
308
///
You can’t perform that action at this time.
0 commit comments