Skip to content

Commit 581d6be

Browse files
committed
docs(reader): Re-arrange variants
1 parent 7adba38 commit 581d6be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/reader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ impl NBReader {
210210
pub enum ReadUntil {
211211
String(String),
212212
Regex(Regex),
213-
EOF,
214213
NBytes(usize),
214+
EOF,
215215
Any(Vec<ReadUntil>),
216216
}
217217

@@ -222,8 +222,8 @@ impl fmt::Display for ReadUntil {
222222
ReadUntil::String(s) if s == "\r" => "\\r (carriage return)".to_owned(),
223223
ReadUntil::String(s) => format!("\"{s}\""),
224224
ReadUntil::Regex(r) => format!("Regex: \"{r}\""),
225-
ReadUntil::EOF => "EOF (End of File)".to_owned(),
226225
ReadUntil::NBytes(n) => format!("reading {n} bytes"),
226+
ReadUntil::EOF => "EOF (End of File)".to_owned(),
227227
ReadUntil::Any(v) => {
228228
let mut res = Vec::new();
229229
for r in v {

0 commit comments

Comments
 (0)