Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created March 13, 2018 23:49
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 rust-play/0a6e3ecd45c79aed199e6c3d7f15b270 to your computer and use it in GitHub Desktop.
Save rust-play/0a6e3ecd45c79aed199e6c3d7f15b270 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
fn greet_world() {
println!("Hello, world!"); // our old friend.
let southern_germany = "Grüß Gott!";
let japan = "ハロー・ワールド";
let regions = [southern_germany, japan];
for region in &regions {
println!("{}", region);
}
}
fn main() {
greet_world();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment