File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -198,16 +198,12 @@ impl fmt::Debug for VarsOs {
198198///
199199/// # Errors
200200///
201- /// This function returns [`VarError::NotPresent`] if the environment variable
202- /// isn't set.
201+ /// Returns [`VarError::NotPresent`] if:
202+ /// - The variable is not set.
203+ /// - The variable's name contains an equal sign or NUL (`'='` or `'\0'`).
203204///
204- /// This function may return [`VarError::NotPresent`] if the
205- /// environment variable's name contains the equal sign character (`=`) or the
206- /// NUL character.
207- ///
208- /// This function will return [`VarError::NotUnicode`] if the environment
209- /// variable's value is not valid Unicode. If this is not desired, consider
210- /// using [`var_os`].
205+ /// Returns [`VarError::NotUnicode`] if the variable's value is not valid
206+ /// Unicode. If this is not desired, consider using [`var_os`].
211207///
212208/// # Examples
213209///
You can’t perform that action at this time.
0 commit comments