Skip to content

Commit 1e13626

Browse files
committed
Switch io::print and io::println to take slices.
1 parent bc03121 commit 1e13626

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ fn buffered_file_writer(path: ~str) -> result<writer, ~str> {
599599
fn stdout() -> writer { fd_writer(libc::STDOUT_FILENO as c_int, false) }
600600
fn stderr() -> writer { fd_writer(libc::STDERR_FILENO as c_int, false) }
601601
602-
fn print(s: ~str) { stdout().write_str(s); }
603-
fn println(s: ~str) { stdout().write_line(s); }
602+
fn print(s: &str) { stdout().write_str(s); }
603+
fn println(s: &str) { stdout().write_line(s); }
604604
605605
type mem_buffer = @{buf: dvec<u8>, mut pos: uint};
606606

0 commit comments

Comments
 (0)