Skip to content

Commit

Permalink
Fix incorrect example code of OpenOptions::open
Browse files Browse the repository at this point in the history
  • Loading branch information
pjw91 committed Dec 13, 2019
1 parent 3964a55 commit b65c6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/fs.rs
Expand Up @@ -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
Expand Down

0 comments on commit b65c6ec

Please sign in to comment.