Add prelude to get Write
This commit is contained in:
parent
9634bcbd3d
commit
d328d6472e
1 changed files with 1 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ macro_rules! println {
|
|||
/// ```
|
||||
/// use std::io;
|
||||
/// use std::fs::File;
|
||||
/// use std::io::prelude::*;
|
||||
///
|
||||
/// fn write_to_file_using_try() -> Result<(), io::Error> {
|
||||
/// let mut file = try!(File::create("my_best_friends.txt"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue