Skip to content

Commit 28a298b

Browse files
committed
Renew greeting
1 parent c5702ad commit 28a298b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

rust/greeting/src/main.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
fn greet_world() {
2+
let southern_germany = "Grüß Gott!";
3+
let chinese = "世界,你好";
4+
let english = "World, hello";
5+
let regions = [southern_germany, chinese, english];
6+
for region in regions.iter() {
7+
println!("{}", &region);
8+
}
9+
}
10+
111
fn main() {
2-
println!("Hello, world!");
12+
greet_world();
313
}

0 commit comments

Comments
 (0)