-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
Description
In the example for LineWriter there is this code fragment:
for &byte in road_not_taken.iter() {
file.write(&[byte]).unwrap();
}
This code isn't correct -- it should be file.write_all
instead. In fact, trying the run the example fails on play.rust-lang.org
.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools