Closed
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
.