1
Fork 0

Use byte literals in libstd

This commit is contained in:
nham 2014-08-06 02:02:50 -04:00
parent dfdea3f116
commit 3fb78e29f4
13 changed files with 52 additions and 54 deletions

View file

@ -239,7 +239,7 @@ pub fn print(s: &str) {
/// `\n` character is printed to the console after the string.
pub fn println(s: &str) {
with_task_stdout(|io| {
io.write(s.as_bytes()).and_then(|()| io.write(['\n' as u8]))
io.write(s.as_bytes()).and_then(|()| io.write([b'\n']))
})
}