Skip to content

Commit

Permalink
Fix example.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Sep 24, 2014
1 parent 5c9350f commit 7e886f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn main() {
// We create a CSV reader with a small buffer so that we can see streaming
// in action on small inputs.
let buf = io::BufferedReader::with_capacity(1, r);
let mut dec = csv::Reader::from_buffer(buf);
let mut dec = csv::Reader::from_reader(buf);
for r in dec.records() {
println!("Record: {}", r);
}
Expand Down

0 comments on commit 7e886f7

Please sign in to comment.