Skip to content

Commit 5e4b29b

Browse files
committed
Remove references to non-existant functions in the std::path documentation
1 parent 279a780 commit 5e4b29b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libstd/path/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,13 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
178178
fn into_vec(self) -> Vec<u8>;
179179

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

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

0 commit comments

Comments
 (0)