Skip to content

Commit f29c9d7

Browse files
authored
doc: update tutorial.rs
This updates the output to match actual output at present. PR #303
1 parent e0a8b8b commit f29c9d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tutorial.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ header1,header2
213213
foo,bar
214214
quux,baz,foobar
215215
$ ./target/debug/csvtutor < invalid
216-
StringRecord { position: Some(Position { byte: 16, line: 2, record: 1 }), fields: ["foo", "bar"] }
217-
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: UnequalLengths { pos: Some(Position { byte: 24, line: 3, record: 2 }), expected_len: 2, len: 3 }', /checkout/src/libcore/result.rs:859
218-
note: Run with `RUST_BACKTRACE=1` for a backtrace.
216+
StringRecord(["foo", "bar"])
217+
thread 'main' panicked at 'a CSV record: Error(UnequalLengths { pos: Some(Position { byte: 24, line: 3, record: 2 }), expected_len: 2, len: 3 })', src/main.rs:13:29
218+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
219219
```
220220
221221
What happened here? First and foremost, we should talk about why the CSV data

0 commit comments

Comments
 (0)