From 16bc72040a48613f8fd41a55ce1188339d2ab42e Mon Sep 17 00:00:00 2001 From: nham Date: Mon, 28 Jul 2014 19:32:47 -0400 Subject: Remove references to non-existant functions in the std::path documentation --- src/libstd/path/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index 0c93f8e6de9..1e9ec32d759 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -178,16 +178,13 @@ pub trait GenericPath: Clone + GenericPathUnsafe { fn into_vec(self) -> Vec; /// 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 } } -- cgit 1.4.1-3-g733a5 From f1e14cc10dd42dc2895d66d15127f25163b934ce Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Tue, 29 Jul 2014 19:47:58 +0200 Subject: doc: add missing word --- src/libstd/io/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/io/fs.rs b/src/libstd/io/fs.rs index 790fe6cb8b9..fcb41c8f6fc 100644 --- a/src/libstd/io/fs.rs +++ b/src/libstd/io/fs.rs @@ -114,7 +114,7 @@ impl File { /// `FileMode` and `FileAccess` provide information about the permissions /// context in which a given stream is created. More information about them /// can be found in `std::io`'s docs. If a file is opened with `Write` - /// or `ReadWrite` access, then it will be created it does not already + /// or `ReadWrite` access, then it will be created if it does not already /// exist. /// /// Note that, with this function, a `File` is returned regardless of the -- cgit 1.4.1-3-g733a5