diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-17 13:47:24 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-17 15:34:54 -0700 |
| commit | 7dde840dc6b077974d48ae7c966ea16a0e36f3f6 (patch) | |
| tree | 6dfd922ddb6411aeeefe3b7738d6099034321980 | |
| parent | d9f1426e69410f0eda9b4c1b2e87042a8bbda41d (diff) | |
| download | rust-7dde840dc6b077974d48ae7c966ea16a0e36f3f6.tar.gz rust-7dde840dc6b077974d48ae7c966ea16a0e36f3f6.zip | |
Fix copy warnings in str
| -rw-r--r-- | src/libcore/str.rs | 7 |
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] |
