Skip to content

Commit dfacef5

Browse files
tedhorstalexcrichton
authored andcommitted
fix string in from_utf8_lossy_100_multibyte benchmark
1 parent 6807349 commit dfacef5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcollections/string.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,7 @@ mod tests {
856856

857857
#[bench]
858858
fn from_utf8_lossy_100_multibyte(b: &mut Bencher) {
859-
let s = "𐌀𐌖𐌋𐌄𐌑𐌉ปรدولة\
860-
الكويتทศไทย中华𐍅𐌿𐌻𐍆𐌹𐌻𐌰".as_bytes();
859+
let s = "𐌀𐌖𐌋𐌄𐌑𐌉ปรدولة الكويتทศไทย中华𐍅𐌿𐌻𐍆𐌹𐌻𐌰".as_bytes();
861860
assert_eq!(100, s.len());
862861
b.iter(|| {
863862
let _ = String::from_utf8_lossy(s);

0 commit comments

Comments
 (0)