Clarify wording

pull/464/head
Wilfred Hughes 2023-01-15 15:56:37 +07:00
parent c9105ca0ba
commit e17b6e6109
1 changed files with 2 additions and 2 deletions

@ -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.