Skip to content

Commit 4724541

Browse files
committed
---
yaml --- r: 217503 b: refs/heads/tmp c: 78ec055 h: refs/heads/master i: 217501: c32ca00 217499: 9d1d91b 217495: b76f08c 217487: 5abcec9 217471: 13a3658 v: v3
1 parent 36af2c2 commit 4724541

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
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: 2ad26e850ed5dfedda8c96d7315aee50145ceedd
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: c1b8bd2d6fd4a00522635112d3f7b28501552a65
28+
refs/heads/tmp: 78ec055a148008b6ef9c01ce6fda3c8e6448113d
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/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)