Skip to content

Commit 84aca88

Browse files
Add missing urls for env functions
1 parent 3c97cbe commit 84aca88

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/libstd/env.rs

+11-4
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ pub struct VarsOs { inner: os_imp::Env }
9696
///
9797
/// While iterating, the returned iterator will panic if any key or value in the
9898
/// 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
100102
///
101103
/// # Examples
102104
///
@@ -171,9 +173,12 @@ impl fmt::Debug for VarsOs {
171173

172174
/// Fetches the environment variable `key` from the current process.
173175
///
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
175177
/// 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
177182
///
178183
/// # Examples
179184
///
@@ -199,7 +204,9 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
199204
}
200205

201206
/// 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
203210
///
204211
/// # Examples
205212
///

0 commit comments

Comments
 (0)