Created
March 13, 2018 23:51
-
-
Save rust-play/6376a32fd54e0dcdd11cf1b1b3d89240 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains 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 regions.iter() { | |
println!("{}", ®ion); | |
} | |
} | |
fn main() { | |
greet_world(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment