Fix incorrect example code of OpenOptions::open
This commit is contained in:
parent
3964a55ba5
commit
b65c6ec10f
@ -936,7 +936,7 @@ impl OpenOptions {
|
||||
/// ```no_run
|
||||
/// use std::fs::OpenOptions;
|
||||
///
|
||||
/// let file = OpenOptions::new().open("foo.txt");
|
||||
/// let file = OpenOptions::new().read(true).open("foo.txt");
|
||||
/// ```
|
||||
///
|
||||
/// [`ErrorKind`]: ../io/enum.ErrorKind.html
|
||||
|
Loading…
Reference in New Issue
Block a user