Skip to content

Commit d328d64

Browse files
committed
Add prelude to get Write
1 parent 9634bcb commit d328d64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/macros.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ macro_rules! println {
126126
/// ```
127127
/// use std::io;
128128
/// use std::fs::File;
129+
/// use std::io::prelude::*;
129130
///
130131
/// fn write_to_file_using_try() -> Result<(), io::Error> {
131132
/// let mut file = try!(File::create("my_best_friends.txt"));

0 commit comments

Comments
 (0)