Skip to content

Commit

Permalink
Remove references to non-existant functions in the std::path document…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
nham committed Jul 29, 2014
1 parent 279a780 commit 5e4b29b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libstd/path/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,13 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
fn into_vec(self) -> Vec<u8>;

/// Returns an object that implements `Show` for printing paths
///
/// This will print the equivalent of `to_display_str()` when used with a {} format parameter.
fn display<'a>(&'a self) -> Display<'a, Self> {
Display{ path: self, filename: false }
}

/// Returns an object that implements `Show` for printing filenames
///
/// This will print the equivalent of `to_filename_display_str()` when used with a {}
/// format parameter. If there is no filename, nothing will be printed.
/// If there is no filename, nothing will be printed.
fn filename_display<'a>(&'a self) -> Display<'a, Self> {
Display{ path: self, filename: true }
}
Expand Down

4 comments on commit 5e4b29b

@bors
Copy link
Contributor

@bors bors commented on 5e4b29b Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from kballard
at nham@5e4b29b

@bors
Copy link
Contributor

@bors bors commented on 5e4b29b Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging nham/rust/obsolete_path_display_docs = 5e4b29b into auto

@bors
Copy link
Contributor

@bors bors commented on 5e4b29b Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nham/rust/obsolete_path_display_docs = 5e4b29b merged ok, testing candidate = d56245d7

Please sign in to comment.