Skip to content

Commit

Permalink
core: Doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Mar 16, 2012
1 parent 0d88bf7 commit a7132ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 Expand Up @@ -1319,7 +1319,7 @@ fn reserve(&ss: str, nn: uint) {
rustrt::str_reserve_shared(ss, nn);
}

#[doc = "These functions may create invalid UTF-8 strings and eat your baby"]
#[doc = "Unsafe operations"]
mod unsafe {
export
// FIXME: stop exporting several of these
Expand Down

0 comments on commit a7132ee

Please sign in to comment.