docs: fix Rust example to use include_header_row

This commit is contained in:
Mueez Khan 2024-06-21 00:19:44 -04:00 committed by GitHub
parent ad526cc717
commit 4e62cc2ecd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(())
} }
``` ```