File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,12 @@ impl Error for VarError {
260
260
/// - [Austin Group Bugzilla](http://austingroupbugs.net/view.php?id=188)
261
261
/// - [GNU C library Bugzilla](https://sourceware.org/bugzilla/show_bug.cgi?id=15607#c2)
262
262
///
263
+ /// # Panics
264
+ ///
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.
268
+ ///
263
269
/// # Examples
264
270
///
265
271
/// ```
@@ -292,6 +298,12 @@ fn _set_var(k: &OsStr, v: &OsStr) {
292
298
/// - [Austin Group Bugzilla](http://austingroupbugs.net/view.php?id=188)
293
299
/// - [GNU C library Bugzilla](https://sourceware.org/bugzilla/show_bug.cgi?id=15607#c2)
294
300
///
301
+ /// # Panics
302
+ ///
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.
306
+ ///
295
307
/// # Examples
296
308
///
297
309
/// ```
You can’t perform that action at this time.
0 commit comments