Switch io::print and io::println to take slices.
This commit is contained in:
parent
bc03121d7e
commit
1e13626caa
1 changed files with 2 additions and 2 deletions
|
|
@ -599,8 +599,8 @@ fn buffered_file_writer(path: ~str) -> result<writer, ~str> {
|
|||
fn stdout() -> writer { fd_writer(libc::STDOUT_FILENO as c_int, false) }
|
||||
fn stderr() -> writer { fd_writer(libc::STDERR_FILENO as c_int, false) }
|
||||
|
||||
fn print(s: ~str) { stdout().write_str(s); }
|
||||
fn println(s: ~str) { stdout().write_line(s); }
|
||||
fn print(s: &str) { stdout().write_str(s); }
|
||||
fn println(s: &str) { stdout().write_line(s); }
|
||||
|
||||
type mem_buffer = @{buf: dvec<u8>, mut pos: uint};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue