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 authored 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
Original file line number Diff line number Diff line change
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.