Skip to content

Commit

Permalink
Fix documentation for writer has_headers
Browse files Browse the repository at this point in the history
  • Loading branch information
barafael authored and Rafael Bachmann committed Nov 13, 2023
1 parent 533d37b commit 14130ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ impl WriterBuilder {
///
/// # fn main() { example().unwrap(); }
/// fn example() -> Result<(), Box<dyn Error>> {
/// let mut wtr = WriterBuilder::new().from_writer(vec![]);
/// let mut wtr = WriterBuilder::new()
/// .has_headers(false)
/// .from_writer(vec![]);
/// wtr.serialize(("Boston", "United States", 4628910))?;
/// wtr.serialize(("Concord", "United States", 42695))?;
///
Expand Down

0 comments on commit 14130ea

Please sign in to comment.