Skip to content

Commit

Permalink
core: Remove extra backslashes from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Mar 16, 2012
1 parent 0b0ecc6 commit 3db8ae0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 3db8ae0

Please sign in to comment.