Skip to content

Commit

Permalink
v.1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
altunenes committed Aug 27, 2023
1 parent 7160ea3 commit 6b31f5c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,7 @@ use crate::parser::Entry;
/// * `Ok(())` - If the export was successful.
/// * `Err(Error)` - If an IO error occurred during export.
///
/// # Examples
///
/// ```rust
/// use crate::parser::Entry;
///
/// let entries = vec![
/// Entry { content: "content1", date: "date1", username: "username1" },
/// Entry { content: "content2", date: "date2", username: "username2" },
/// ];
///
/// export_to_csv(entries, "output.csv");
/// ```


pub fn export_to_csv(entries: Vec<Entry>, file_name: &str) -> Result<(), Error> {
let file = File::create(file_name)?;
Expand Down

0 comments on commit 6b31f5c

Please sign in to comment.