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 b8ba0f3 commit 71b9162Copy full SHA for 71b9162
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 5950ae3c0e6cd9101c611ff61b0992eb01cb0822
+refs/heads/master: 3cabe7429f15c527006d7410046908c759d7ccc9
trunk/src/lib/io.rs
@@ -384,6 +384,9 @@ fn buffered_file_buf_writer(path: str) -> buf_writer {
384
fn stdout() -> writer { ret new_writer(fd_buf_writer(1, option::none)); }
385
fn stderr() -> writer { ret new_writer(fd_buf_writer(2, option::none)); }
386
387
+fn print(s: str) { stdout().write_str(s); }
388
+fn println(s: str) { stdout().write_str(s + "\n"); }
389
+
390
type str_writer =
391
obj {
392
fn get_writer() -> writer;
0 commit comments