about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-16 12:20:38 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-16 12:20:38 -0700
commit3db8ae0bdc3f2c2d59a936973974a13451bb129d (patch)
tree2b51fe7fac0e47db4a327c64175356442bd35545 /src
parent0b0ecc662b08a8c05c7427fe80f3a2ec8a14f5af (diff)
downloadrust-3db8ae0bdc3f2c2d59a936973974a13451bb129d.tar.gz
rust-3db8ae0bdc3f2c2d59a936973974a13451bb129d.zip
core: Remove extra backslashes from docs
Diffstat (limited to 'src')
-rw-r--r--src/libcore/str.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index 13afab2beb9..4523721e983 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|