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.
In the example for LineWriter there is this code fragment:
This code isn't correct -- it should be
file.write_allinstead. In fact, trying the run the example fails onplay.rust-lang.org.