File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -236,11 +236,12 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
236
236
}
237
237
238
238
/// Fetches the environment variable `key` from the current process, returning
239
- /// [`None`] if the environment variable isn't set. It may return `None` also
240
- /// if the environment variable's name contains
239
+ /// [`None`] if the variable isn't set or if there is another error.
240
+ ///
241
+ /// It may return `None` if the environment variable's name contains
241
242
/// the equal sign character (`=`) or the NUL character.
242
243
///
243
- /// Note that the method will not check if the environment variable
244
+ /// Note that this function will not check if the environment variable
244
245
/// is valid Unicode. If you want to have an error on invalid UTF-8,
245
246
/// use the [`var`] function instead.
246
247
///
You can’t perform that action at this time.
0 commit comments