Skip to content

Commit bb4fb2d

Browse files
committed
---
yaml --- r: 219643 b: refs/heads/snap-stage3 c: 78ec055 h: refs/heads/master i: 219641: 30864bd 219639: 48058e0 v: v3
1 parent 3b58642 commit bb4fb2d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: c044791d80ea0dc5c4b57b6030a67b69f8510239
3-
refs/heads/snap-stage3: c1b8bd2d6fd4a00522635112d3f7b28501552a65
3+
refs/heads/snap-stage3: 78ec055a148008b6ef9c01ce6fda3c8e6448113d
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/snap-stage3/src/libstd/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ impl OpenOptions {
419419
/// ```no_run
420420
/// use std::fs::OpenOptions;
421421
///
422-
/// let file = OpenOptions::new().append(true).open("foo.txt");
422+
/// let file = OpenOptions::new().write(true).append(true).open("foo.txt");
423423
/// ```
424424
#[stable(feature = "rust1", since = "1.0.0")]
425425
pub fn append(&mut self, append: bool) -> &mut OpenOptions {
@@ -436,7 +436,7 @@ impl OpenOptions {
436436
/// ```no_run
437437
/// use std::fs::OpenOptions;
438438
///
439-
/// let file = OpenOptions::new().truncate(true).open("foo.txt");
439+
/// let file = OpenOptions::new().write(true).truncate(true).open("foo.txt");
440440
/// ```
441441
#[stable(feature = "rust1", since = "1.0.0")]
442442
pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions {

0 commit comments

Comments
 (0)