]> git.lizzy.rs Git - rust.git/commitdiff
Add missing urls for env functions
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 18 Feb 2017 13:44:56 +0000 (14:44 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 18 Feb 2017 13:44:56 +0000 (14:44 +0100)
src/libstd/env.rs

index 1ef2cb4ed153c2e5d4e78eba2531e86031ecc29d..dd4f1ff4f5ed7318c33850b9f341848fed948837 100644 (file)
@@ -96,7 +96,9 @@ pub struct VarsOs { inner: os_imp::Env }
 ///
 /// While iterating, the returned iterator will panic if any key or value in the
 /// environment is not valid unicode. If this is not desired, consider using the
-/// `env::vars_os` function.
+/// [`env::vars_os`] function.
+///
+/// [`env::vars_os`]: fn.vars_os.html
 ///
 /// # Examples
 ///
@@ -171,9 +173,12 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
 
 /// Fetches the environment variable `key` from the current process.
 ///
-/// The returned result is `Ok(s)` if the environment variable is present and is
+/// The returned result is [`Ok(s)`] if the environment variable is present and is
 /// valid unicode. If the environment variable is not present, or it is not
-/// valid unicode, then `Err` will be returned.
+/// valid unicode, then [`Err`] will be returned.
+///
+/// [`Ok(s)`]: ../result/enum.Result.html#variant.Ok
+/// [`Err`]: ../result/enum.Result.html#variant.Err
 ///
 /// # Examples
 ///
@@ -199,7 +204,9 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
 }
 
 /// Fetches the environment variable `key` from the current process, returning
-/// `None` if the variable isn't set.
+/// [`None`] if the variable isn't set.
+///
+/// [`None`]: ../option/enum.Option.html#variant.None
 ///
 /// # Examples
 ///