Files
rust/library/alloc/tests
Konrad Borowski cef81dcd0a Fix handling of trailing bare CR in str::lines
Previously "bare\r" was split into ["bare"] even though the
documentation said that only LF and CRLF count as newlines.

This fix is a behavioural change, even though it brings the behaviour
into line with the documentation, and into line with that of
`std::io::BufRead::lines()`.

This is an alternative to #91051, which proposes to document rather
than fix the behaviour.

Fixes #94435.

Co-authored-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2022-10-06 16:05:38 +00:00
..
2021-05-20 19:42:29 -07:00
2022-03-10 14:36:51 +00:00
2020-07-27 19:51:13 -05:00
2022-06-27 10:50:56 -04:00
2021-05-20 19:42:29 -07:00