From 3e9e32573efd894a11847ebed63fbc63f45f78f0 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sun, 15 Feb 2015 03:52:17 +0200 Subject: [PATCH] doc: fix and expand File::create explanation --- src/libstd/fs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 45de67865a6..5f91d173ed2 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -112,10 +112,10 @@ impl File { OpenOptions::new().read(true).open(path) } - /// Creates a open a file in write-only mode. + /// Open a file in write-only mode. /// - /// This method will attempt to open a new file, truncating it if it already - /// exists. + /// This function will create a file it it does not exist, + /// and will truncate it if it does. /// /// See the `OpenOptions::open` function for more details. pub fn create(path: &P) -> io::Result {