We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccd4689 commit c4044eeCopy full SHA for c4044ee
src/libstd/fs.rs
@@ -569,11 +569,17 @@ impl OpenOptions {
569
/// end of the file. So, before writing, save the current position (using
570
/// [`seek`]`(`[`SeekFrom`]`::`[`Current`]`(0))`, and restore it before the next read.
571
///
572
+ /// ## Note
573
+ ///
574
+ /// This function doesn't create the file if it doesn't exist. Use the [`create`]
575
+ /// method to do so.
576
577
/// [`write()`]: ../../std/fs/struct.File.html#method.write
578
/// [`flush()`]: ../../std/fs/struct.File.html#method.flush
579
/// [`seek`]: ../../std/fs/struct.File.html#method.seek
580
/// [`SeekFrom`]: ../../std/io/enum.SeekFrom.html
581
/// [`Current`]: ../../std/io/enum.SeekFrom.html#variant.Current
582
+ /// [`create`]: #method.create
583
584
/// # Examples
585
0 commit comments