summaryrefslogtreecommitdiff
path: root/meap/meap-code/ch1/ch1-hello2.rs
blob: c804513985840de85f41a7e6d9e1e65786a1bf01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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!("{}", &region);
    }
}

fn main() {
    greet_world();
}