diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 13afab2beb94..4523721e9836 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -517,13 +517,13 @@ fn split_str_nonempty(s: str, sep: str) -> [str] { } #[doc = " -Splits a string into a vector of the substrings separated by LF ('\\\\n') +Splits a string into a vector of the substrings separated by LF ('\\n') "] fn lines(s: str) -> [str] { split_char(s, '\n') } #[doc = " -Splits a string into a vector of the substrings separated by LF ('\\\\n') -and/or CR LF ('\\\\r\\\\n') +Splits a string into a vector of the substrings separated by LF ('\\n') +and/or CR LF ('\\r\\n') "] fn lines_any(s: str) -> [str] { vec::map(lines(s), {|s|