Skip to content

Commit

Permalink
Use a byte literal in libregex
Browse files Browse the repository at this point in the history
  • Loading branch information
nham committed Aug 6, 2014
1 parent 1c2c494 commit 30cfce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libregex/test/bench.rs
Expand Up @@ -159,7 +159,7 @@ fn gen_text(n: uint) -> String {
.collect::<Vec<u8>>();
for (i, b) in bytes.mut_iter().enumerate() {
if i % 20 == 0 {
*b = '\n' as u8
*b = b'\n'
}
}
String::from_utf8(bytes).unwrap()
Expand Down

0 comments on commit 30cfce3

Please sign in to comment.