core: Remove extra backslashes from docs
This commit is contained in:
parent
0b0ecc662b
commit
3db8ae0bdc
1 changed files with 3 additions and 3 deletions
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue