diff options
| author | nham <hamann.nick@gmail.com> | 2014-08-06 02:02:50 -0400 |
|---|---|---|
| committer | nham <hamann.nick@gmail.com> | 2014-08-06 02:02:50 -0400 |
| commit | 3fb78e29f4ae9b3e5bb19bf5a740375e90b01ceb (patch) | |
| tree | b4dcb4ce0e5f25a5f92c5a99f44d6ade5243144a /src/libstd/io/stdio.rs | |
| parent | dfdea3f116ea028b347ca5b73dc462a6d48d9940 (diff) | |
| download | rust-3fb78e29f4ae9b3e5bb19bf5a740375e90b01ceb.tar.gz rust-3fb78e29f4ae9b3e5bb19bf5a740375e90b01ceb.zip | |
Use byte literals in libstd
Diffstat (limited to 'src/libstd/io/stdio.rs')
| -rw-r--r-- | src/libstd/io/stdio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index 45c084b3459..e0201b65071 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -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'])) }) } |
