Skip to content

Commit

Permalink
Rollup merge of rust-lang#39928 - GuillaumeGomez:env_func_urls, r=fre…
Browse files Browse the repository at this point in the history
…wsxcv

Add missing urls for env functions

r? @frewsxcv
  • Loading branch information
GuillaumeGomez authored Feb 18, 2017
2 parents a7e2227 + 84aca88 commit 98c2cf2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/libstd/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down Expand Up @@ -171,9 +173,12 @@ impl fmt::Debug for VarsOs {

/// 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
///
Expand All @@ -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
///
Expand Down

0 comments on commit 98c2cf2

Please sign in to comment.