Skip to content

Commit 30cfce3

Browse files
committed
Use a byte literal in libregex
1 parent 1c2c494 commit 30cfce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libregex/test/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn gen_text(n: uint) -> String {
159159
.collect::<Vec<u8>>();
160160
for (i, b) in bytes.mut_iter().enumerate() {
161161
if i % 20 == 0 {
162-
*b = '\n' as u8
162+
*b = b'\n'
163163
}
164164
}
165165
String::from_utf8(bytes).unwrap()

0 commit comments

Comments
 (0)