Skip to content

Commit

Permalink
Clarify wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Jan 15, 2023
1 parent c9105ca commit e17b6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ impl<S: AsRef<str>> MaxLine for S {
}
}

/// Split `s` on \n or \r\n. Always returns a non-empty vec. Does not
/// include the trailing newline.
/// Split `s` on \n or \r\n. Always returns a non-empty vec. Each line
/// in the vec does not include the trailing newline.
///
/// This differs from `str::lines`, which considers `""` to be zero
/// lines and `"foo\n"` to be one line.
Expand Down

0 comments on commit e17b6e6

Please sign in to comment.