Skip to content

Instantly share code, notes, and snippets.

@pcwalton
Created July 3, 2012 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcwalton/3040867 to your computer and use it in GitHub Desktop.
Save pcwalton/3040867 to your computer and use it in GitHub Desktop.
fn main() {
for [ 1, 2, 3 ].each |i| {
io::println(fmt!("Hello %d", i));
}
}
fn main() {
for [ 1, 2, 3 ].each |i| {
io::println(fmt$("Hello %d", i));
}
}
fn main() {
for [ 1, 2, 3 ].each |i| {
io::println(#fmt("Hello %d", i));
}
}
#select (my_channel) { ... }
select! (my_channel) { ... }
select$ (my_channel) { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment