We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b63cee4 commit 3e9e325Copy full SHA for 3e9e325
src/libstd/fs.rs
@@ -112,10 +112,10 @@ impl File {
112
OpenOptions::new().read(true).open(path)
113
}
114
115
- /// Creates a open a file in write-only mode.
+ /// Open a file in write-only mode.
116
///
117
- /// This method will attempt to open a new file, truncating it if it already
118
- /// exists.
+ /// This function will create a file it it does not exist,
+ /// and will truncate it if it does.
119
120
/// See the `OpenOptions::open` function for more details.
121
pub fn create<P: AsPath + ?Sized>(path: &P) -> io::Result<File> {
0 commit comments