Created
March 13, 2018 23:49
-
-
Save rust-play/0a6e3ecd45c79aed199e6c3d7f15b270 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn greet_world() { | |
println!("Hello, world!"); // our old friend. | |
let southern_germany = "Grüß Gott!"; | |
let japan = "ハロー・ワールド"; | |
let regions = [southern_germany, japan]; | |
for region in ®ions { | |
println!("{}", region); | |
} | |
} | |
fn main() { | |
greet_world(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment