mirror of
https://github.com/rzmk/czv.git
synced 2025-12-19 08:09:24 +00:00
docs: fix Rust example to use include_header_row
This commit is contained in:
parent
ad526cc717
commit
4e62cc2ecd
1 changed files with 5 additions and 2 deletions
|
|
@ -29,8 +29,11 @@ apple,2.50
|
||||||
banana,3.00
|
banana,3.00
|
||||||
strawberry,1.50
|
strawberry,1.50
|
||||||
";
|
";
|
||||||
let output: usize = RowCount::new().file_data(data).execute()?;
|
let output: usize = RowCount::new()
|
||||||
println!("{output}"); // 3
|
.file_data(data)
|
||||||
|
.include_header_row(true)
|
||||||
|
.execute()?;
|
||||||
|
println!("{output}"); // 4
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue