Skip to content

Commit

Permalink
Rollup merge of rust-lang#39621 - GuillaumeGomez:current_dir_docs, r=…
Browse files Browse the repository at this point in the history
…steveklabnik

Add missing urls for current_dir

r? @steveklabnik
  • Loading branch information
frewsxcv authored Feb 8, 2017
2 parents f6480ff + d037808 commit 8499f52
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libstd/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ use path::{Path, PathBuf};
use sys;
use sys::os as os_imp;

/// Returns the current working directory as a `PathBuf`.
/// Returns the current working directory as a [`PathBuf`].
///
/// # Errors
///
/// Returns an `Err` if the current working directory value is invalid.
/// Returns an [`Err`] if the current working directory value is invalid.
/// Possible cases:
///
/// * Current directory does not exist.
/// * There are insufficient permissions to access the current directory.
///
/// [`PathBuf`]: ../../std/path/struct.PathBuf.html
/// [`Err`]: ../../std/result/enum.Result.html#method.err
///
/// # Examples
///
/// ```
Expand Down

0 comments on commit 8499f52

Please sign in to comment.