File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: c1b8bd2d6fd4a00522635112d3f7b28501552a65
4
+ refs/heads/try: 78ec055a148008b6ef9c01ce6fda3c8e6448113d
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ impl OpenOptions {
419
419
/// ```no_run
420
420
/// use std::fs::OpenOptions;
421
421
///
422
- /// let file = OpenOptions::new().append(true).open("foo.txt");
422
+ /// let file = OpenOptions::new().write(true). append(true).open("foo.txt");
423
423
/// ```
424
424
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
425
425
pub fn append ( & mut self , append : bool ) -> & mut OpenOptions {
@@ -436,7 +436,7 @@ impl OpenOptions {
436
436
/// ```no_run
437
437
/// use std::fs::OpenOptions;
438
438
///
439
- /// let file = OpenOptions::new().truncate(true).open("foo.txt");
439
+ /// let file = OpenOptions::new().write(true). truncate(true).open("foo.txt");
440
440
/// ```
441
441
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
442
442
pub fn truncate ( & mut self , truncate : bool ) -> & mut OpenOptions {
You can’t perform that action at this time.
0 commit comments