Skip to content

Commit

Permalink
✅ Hopefully fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
rster2002 committed May 5, 2024
1 parent ff08319 commit 96ede47
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ed-journals/src/models/journal_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use crate::JournalFile;
/// let dir_path = current_dir().unwrap()
/// .parent()
/// .unwrap()
/// .parent()
/// .unwrap()
/// .join("test-journals");
///
/// let journal_dir = JournalDir::try_from(dir_path)
Expand All @@ -33,20 +31,14 @@ use crate::JournalFile;
///
/// for journal_file in logs {
/// // Create a reader
/// let reader = journal_file.create_reader();
/// let reader = journal_file.create_reader().unwrap();
///
/// for entry in reader {
/// let Ok(log) = entry else {
/// println!("Unreadable line");
/// continue;
/// };
///
/// let Some(entry) = log else {
/// // If there is no entry that does NOT mean that it's the end of the file. It depends
/// // a bit on whether the file is 'active' or not.
/// continue;
/// };
///
/// // Do something with the entry
/// }
/// }
Expand Down

0 comments on commit 96ede47

Please sign in to comment.