@@ -96,7 +96,9 @@ pub struct VarsOs { inner: os_imp::Env }
96
96
///
97
97
/// While iterating, the returned iterator will panic if any key or value in the
98
98
/// environment is not valid unicode. If this is not desired, consider using the
99
- /// `env::vars_os` function.
99
+ /// [`env::vars_os`] function.
100
+ ///
101
+ /// [`env::vars_os`]: fn.vars_os.html
100
102
///
101
103
/// # Examples
102
104
///
@@ -171,9 +173,12 @@ impl fmt::Debug for VarsOs {
171
173
172
174
/// Fetches the environment variable `key` from the current process.
173
175
///
174
- /// The returned result is `Ok(s)` if the environment variable is present and is
176
+ /// The returned result is [ `Ok(s)`] if the environment variable is present and is
175
177
/// valid unicode. If the environment variable is not present, or it is not
176
- /// valid unicode, then `Err` will be returned.
178
+ /// valid unicode, then [`Err`] will be returned.
179
+ ///
180
+ /// [`Ok(s)`]: ../result/enum.Result.html#variant.Ok
181
+ /// [`Err`]: ../result/enum.Result.html#variant.Err
177
182
///
178
183
/// # Examples
179
184
///
@@ -199,7 +204,9 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
199
204
}
200
205
201
206
/// Fetches the environment variable `key` from the current process, returning
202
- /// `None` if the variable isn't set.
207
+ /// [`None`] if the variable isn't set.
208
+ ///
209
+ /// [`None`]: ../option/enum.Option.html#variant.None
203
210
///
204
211
/// # Examples
205
212
///
0 commit comments