File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 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> {
236236}
237237
238238/// 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
241242/// the equal sign character (`=`) or the NUL character.
242243///
243- /// Note that the method will not check if the environment variable
244+ /// Note that this function will not check if the environment variable
244245/// is valid Unicode. If you want to have an error on invalid UTF-8,
245246/// use the [`var`] function instead.
246247///
You can’t perform that action at this time.
0 commit comments