Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ea18a6

Browse files
authoredMar 8, 2020
Rollup merge of rust-lang#69777 - lukas-code:patch-1, r=jonas-schievink
Add missing ` in doc for File::with_options()
2 parents 919ae59 + 31183bb commit 9ea18a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libstd/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl File {
407407
///
408408
/// It is equivalent to `OpenOptions::new()` but allows you to write more
409409
/// readable code. Instead of `OpenOptions::new().read(true).open("foo.txt")`
410-
/// you can write `File::with_options().read(true).open("foo.txt"). This
410+
/// you can write `File::with_options().read(true).open("foo.txt")`. This
411411
/// also avoids the need to import `OpenOptions`.
412412
///
413413
/// See the [`OpenOptions::new`] function for more details.

0 commit comments

Comments
 (0)
Please sign in to comment.