File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,12 @@ impl fmt::Debug for VarsOs {
182182/// * Environment variable is not present
183183/// * Environment variable is not valid unicode
184184///
185+ /// # Panics
186+ ///
187+ /// This function may panic if `key` is empty, contains an ASCII equals sign
188+ /// `'='` or the NUL character `'\0'`, or when the value contains the NUL
189+ /// character.
190+ ///
185191/// # Examples
186192///
187193/// ```
@@ -210,6 +216,12 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
210216///
211217/// [`None`]: ../option/enum.Option.html#variant.None
212218///
219+ /// # Panics
220+ ///
221+ /// This function may panic if `key` is empty, contains an ASCII equals sign
222+ /// `'='` or the NUL character `'\0'`, or when the value contains the NUL
223+ /// character.
224+ ///
213225/// # Examples
214226///
215227/// ```
You can’t perform that action at this time.
0 commit comments