We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc03121 commit 1e13626Copy full SHA for 1e13626
src/libcore/io.rs
@@ -599,8 +599,8 @@ fn buffered_file_writer(path: ~str) -> result<writer, ~str> {
599
fn stdout() -> writer { fd_writer(libc::STDOUT_FILENO as c_int, false) }
600
fn stderr() -> writer { fd_writer(libc::STDERR_FILENO as c_int, false) }
601
602
-fn print(s: ~str) { stdout().write_str(s); }
603
-fn println(s: ~str) { stdout().write_line(s); }
+fn print(s: &str) { stdout().write_str(s); }
+fn println(s: &str) { stdout().write_line(s); }
604
605
type mem_buffer = @{buf: dvec<u8>, mut pos: uint};
606
0 commit comments