Skip to content

Commit

Permalink
Rollup merge of rust-lang#69777 - lukas-code:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
Add missing ` in doc for File::with_options()
  • Loading branch information
Centril authored Mar 8, 2020
2 parents 919ae59 + 31183bb commit 9ea18a6
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 @@ -407,7 +407,7 @@ impl File {
///
/// It is equivalent to `OpenOptions::new()` but allows you to write more
/// readable code. Instead of `OpenOptions::new().read(true).open("foo.txt")`
/// you can write `File::with_options().read(true).open("foo.txt"). This
/// you can write `File::with_options().read(true).open("foo.txt")`. This
/// also avoids the need to import `OpenOptions`.
///
/// See the [`OpenOptions::new`] function for more details.
Expand Down

0 comments on commit 9ea18a6

Please sign in to comment.