Skip to content

Commit

Permalink
Rollup merge of rust-lang#22353 - tshepang:improve-fs-create-docs, r=…
Browse files Browse the repository at this point in the history
…alexcrichton
  • Loading branch information
Manishearth committed Feb 17, 2015
2 parents 6cab5bb + 3e9e325 commit 1c8e592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: AsPath + ?Sized>(path: &P) -> io::Result<File> {
Expand Down

0 comments on commit 1c8e592

Please sign in to comment.