Skip to content

Commit

Permalink
doc: fix and expand File::create explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Feb 15, 2015
1 parent b63cee4 commit 3e9e325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/fs.rs
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 3e9e325

Please sign in to comment.