Add note for append method in OpenOptions docs
This commit is contained in:
@@ -569,11 +569,17 @@ impl OpenOptions {
|
|||||||
/// end of the file. So, before writing, save the current position (using
|
/// end of the file. So, before writing, save the current position (using
|
||||||
/// [`seek`]`(`[`SeekFrom`]`::`[`Current`]`(0))`, and restore it before the next read.
|
/// [`seek`]`(`[`SeekFrom`]`::`[`Current`]`(0))`, and restore it before the next read.
|
||||||
///
|
///
|
||||||
|
/// ## Note
|
||||||
|
///
|
||||||
|
/// This function doesn't create the file if it doesn't exist. Use the [`create`]
|
||||||
|
/// method to do so.
|
||||||
|
///
|
||||||
/// [`write()`]: ../../std/fs/struct.File.html#method.write
|
/// [`write()`]: ../../std/fs/struct.File.html#method.write
|
||||||
/// [`flush()`]: ../../std/fs/struct.File.html#method.flush
|
/// [`flush()`]: ../../std/fs/struct.File.html#method.flush
|
||||||
/// [`seek`]: ../../std/fs/struct.File.html#method.seek
|
/// [`seek`]: ../../std/fs/struct.File.html#method.seek
|
||||||
/// [`SeekFrom`]: ../../std/io/enum.SeekFrom.html
|
/// [`SeekFrom`]: ../../std/io/enum.SeekFrom.html
|
||||||
/// [`Current`]: ../../std/io/enum.SeekFrom.html#variant.Current
|
/// [`Current`]: ../../std/io/enum.SeekFrom.html#variant.Current
|
||||||
|
/// [`create`]: #method.create
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user