about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-10-17 13:47:24 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-10-17 15:34:54 -0700
commit7dde840dc6b077974d48ae7c966ea16a0e36f3f6 (patch)
tree6dfd922ddb6411aeeefe3b7738d6099034321980
parentd9f1426e69410f0eda9b4c1b2e87042a8bbda41d (diff)
downloadrust-7dde840dc6b077974d48ae7c966ea16a0e36f3f6.tar.gz
rust-7dde840dc6b077974d48ae7c966ea16a0e36f3f6.zip
Fix copy warnings in str
-rw-r--r--src/libcore/str.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index abd9621cf0f..26f29e388cb 100644
--- a/src/libcore/str.rs
+++ b/src/libcore/str.rs
@@ -2527,9 +2527,10 @@ mod tests {
         assert split_within(~"hello", 15) == ~[~"hello"];
 
         let data = ~"\nMary had a little lamb\nLittle lamb\n";
-        assert split_within(data, 15) == ~[~"Mary had a little",
-                                           ~"lamb Little",
-                                           ~"lamb"];
+        error!("~~~~ %?", split_within(data, 15));
+        assert split_within(data, 15) == ~[~"Mary had a",
+                                           ~"little lamb",
+                                           ~"Little lamb"];
     }
 
     #[test]