hello,world!

This commit is contained in:
2025-09-23 17:18:55 +08:00
parent 26265b0d44
commit 699e600b4b
4 changed files with 26 additions and 0 deletions

Binary file not shown.

7
code/world_hello/Cargo.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "world_hello"
version = "0.1.0"

View File

@@ -0,0 +1,6 @@
[package]
name = "world_hello"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@@ -0,0 +1,13 @@
fn greet_world() {
let southern_germany = "Grüß Gott!";
let chinese = "世界,你好";
let english = "World, hello";
let regions = [southern_germany, chinese, english];
for region in regions.iter() {
println!("{}", &region);
}
}
fn main() {
greet_world();
}