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: d328d6472e6a61820c92ed7a910dbbff734fe235
3
+ refs/heads/snap-stage3: a41fd590a8142b524d6a6d34e8977906d6787368
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 @@ -130,14 +130,14 @@ macro_rules! println {
130
130
///
131
131
/// fn write_to_file_using_try() -> Result<(), io::Error> {
132
132
/// let mut file = try!(File::create("my_best_friends.txt"));
133
- /// try!(file.write_line( "This is a list of my best friends."));
133
+ /// try!(file.write_all(b "This is a list of my best friends."));
134
134
/// println!("I wrote to the file");
135
135
/// Ok()
136
136
/// }
137
137
/// // This is equivalent to:
138
138
/// fn write_to_file_using_match() -> Result<(), io::Error> {
139
139
/// let mut file = try!(File::create("my_best_friends.txt"));
140
- /// match file.write_line( "This is a list of my best friends.") {
140
+ /// match file.write_all(b "This is a list of my best friends.") {
141
141
/// Ok(_) => (),
142
142
/// Err(e) => return Err(e),
143
143
/// }
You can’t perform that action at this time.
0 commit comments