Skip to content

Commit

Permalink
docs: fix Rust example to use include_header_row
Browse files Browse the repository at this point in the history
  • Loading branch information
rzmk authored Jun 21, 2024
1 parent ad526cc commit 4e62cc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ apple,2.50
banana,3.00
strawberry,1.50
";
let output: usize = RowCount::new().file_data(data).execute()?;
println!("{output}"); // 3
let output: usize = RowCount::new()
.file_data(data)
.include_header_row(true)
.execute()?;
println!("{output}"); // 4
Ok(())
}
```
Expand Down

0 comments on commit 4e62cc2

Please sign in to comment.