Skip to content

Instantly share code, notes, and snippets.

@krdln
Created October 29, 2013 23:55
Show Gist options
  • Save krdln/7224818 to your computer and use it in GitHub Desktop.
Save krdln/7224818 to your computer and use it in GitHub Desktop.
stdout() and print
use std::rt::io::{stdout,Writer};
fn main() {
print("Hello");
stdout().write(" World".as_bytes());
println("!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment