You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume "foo\nbar" producing ["foo"] is a bug,
But the lines_iter() test assert that AsciiStr::from("\n").lines() produces nothing, which is not what I expected, and also differs from str.lines() (which produces a single empty slice).
str.lines() handles "\r\n" and trailing newline, so could the (currently rather complex) implementation be replaced with a simple forwarding implementation?
EDIT on 2018-09-11: fixed typo "foo/nbar"and corrected .split() to .lines().
The text was updated successfully, but these errors were encountered:
I assume
"foo\nbar"
producing["foo"]
is a bug,But the
lines_iter()
test assert thatAsciiStr::from("\n").lines()
produces nothing, which is not what I expected, and also differs fromstr.lines()
(which produces a single empty slice).str.lines()
handles"\r\n"
and trailing newline, so could the (currently rather complex) implementation be replaced with a simple forwarding implementation?EDIT on 2018-09-11: fixed typo
"foo/nbar"
and corrected.split()
to.lines()
.The text was updated successfully, but these errors were encountered: