core: Doc cleanup
This commit is contained in:
parent
0d88bf7e43
commit
a7132eeb1e
1 changed files with 4 additions and 4 deletions
|
@ -517,13 +517,13 @@ fn split_str_nonempty(s: str, sep: str) -> [str] {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc = "
|
#[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') }
|
fn lines(s: str) -> [str] { split_char(s, '\n') }
|
||||||
|
|
||||||
#[doc = "
|
#[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')
|
||||||
and/or CR LF ('\\r\\n')
|
and/or CR LF ('\\\\r\\\\n')
|
||||||
"]
|
"]
|
||||||
fn lines_any(s: str) -> [str] {
|
fn lines_any(s: str) -> [str] {
|
||||||
vec::map(lines(s), {|s|
|
vec::map(lines(s), {|s|
|
||||||
|
@ -1319,7 +1319,7 @@ fn reserve(&ss: str, nn: uint) {
|
||||||
rustrt::str_reserve_shared(ss, nn);
|
rustrt::str_reserve_shared(ss, nn);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc = "These functions may create invalid UTF-8 strings and eat your baby"]
|
#[doc = "Unsafe operations"]
|
||||||
mod unsafe {
|
mod unsafe {
|
||||||
export
|
export
|
||||||
// FIXME: stop exporting several of these
|
// FIXME: stop exporting several of these
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue