]> git.lizzy.rs Git - rust.git/commitdiff
doc: this sentence did not read well
authorTshepang Lekhonkhobe <tshepang@gmail.com>
Thu, 21 Jan 2016 21:27:18 +0000 (23:27 +0200)
committerTshepang Lekhonkhobe <tshepang@gmail.com>
Thu, 21 Jan 2016 21:27:32 +0000 (23:27 +0200)
src/libstd/fs.rs

index 414a0ebd11fa27ce0cc8c4b79f68b45a252229cc..67d885081478dd4e4744fa826de2cfe93efe3860 100644 (file)
@@ -487,8 +487,8 @@ pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions {
     /// This option indicates whether a new file will be created if the file
     /// does not yet already exist.
     ///
-    /// The file must be opened with write or append access in order to create
-    /// a new file.
+    /// In order for the file to be created, `write` or `append` access must
+    /// be used.
     ///
     /// # Examples
     ///