Skip to content

Commit 7dde840

Browse files
committed
Fix copy warnings in str
1 parent d9f1426 commit 7dde840

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/str.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,9 +2527,10 @@ mod tests {
25272527
assert split_within(~"hello", 15) == ~[~"hello"];
25282528

25292529
let data = ~"\nMary had a little lamb\nLittle lamb\n";
2530-
assert split_within(data, 15) == ~[~"Mary had a little",
2531-
~"lamb Little",
2532-
~"lamb"];
2530+
error!("~~~~ %?", split_within(data, 15));
2531+
assert split_within(data, 15) == ~[~"Mary had a",
2532+
~"little lamb",
2533+
~"Little lamb"];
25332534
}
25342535

25352536
#[test]

0 commit comments

Comments
 (0)