Skip to content

Commit

Permalink
chore: swaps examples to correct documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Apr 25, 2023
1 parent a66bc79 commit 1e5a81c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ where
///
/// ```
/// use chainfile as chain;
/// use std::io;
/// use std::io::{self, BufRead};
///
/// let data = b"chain 0 seq0 4 + 0 4 seq0 5 - 0 5 1\n3\t0\t1\n1";
/// let cursor = io::Cursor::new(data);
/// let mut reader = chain::Reader::new(cursor);
///
/// let sections = reader.sections().map(|result| result.unwrap()).collect::<Vec<_>>();
/// assert_eq!(sections.len(), 1);
/// let lines = reader.lines().collect::<Vec<_>>();
/// assert_eq!(lines.len(), 3);
///
/// # Ok::<(), Box<dyn std::error::Error>>(())
/// ```
Expand Down Expand Up @@ -232,14 +232,14 @@ where
///
/// ```
/// use chainfile as chain;
/// use std::io::{self, BufRead};
/// use std::io;
///
/// let data = b"chain 0 seq0 4 + 0 4 seq0 5 - 0 5 1\n3\t0\t1\n1";
/// let cursor = io::Cursor::new(data);
/// let mut reader = chain::Reader::new(cursor);
///
/// let lines = reader.lines().collect::<Vec<_>>();
/// assert_eq!(lines.len(), 3);
/// let sections = reader.sections().map(|result| result.unwrap()).collect::<Vec<_>>();
/// assert_eq!(sections.len(), 1);
///
/// # Ok::<(), Box<dyn std::error::Error>>(())
/// ```
Expand Down

0 comments on commit 1e5a81c

Please sign in to comment.