about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-16 12:12:25 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-16 12:12:25 -0700
commita7132eeb1e8044f7d5e3ff8df87a861f0da12045 (patch)
tree1e0af271d1f3c68e74570d737f7da8a53bc46e0d /src
parent0d88bf7e439ea9f2c51dfb3634b39f65cd7717aa (diff)
downloadrust-a7132eeb1e8044f7d5e3ff8df87a861f0da12045.tar.gz
rust-a7132eeb1e8044f7d5e3ff8df87a861f0da12045.zip
core: Doc cleanup
Diffstat (limited to 'src')
-rw-r--r--src/libcore/str.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index fb8acf49a7e..13afab2beb9 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|
@@ -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