File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/snap-stage3/src/libstd 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: c044791d80ea0dc5c4b57b6030a67b69f8510239
3
- refs/heads/snap-stage3: c1b8bd2d6fd4a00522635112d3f7b28501552a65
3
+ refs/heads/snap-stage3: 78ec055a148008b6ef9c01ce6fda3c8e6448113d
4
4
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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