fn grreet_hello(language: &str) -> &'static str {
let southern_germany = "Grüß Gott!";
let mut chinese = "世界,你好";
let english = "World, hello";
let regions = [southern_germany,chinese,english];
chinese = "吃了吗";
for region in regions.iter() {
println!("{}", ®ion)
}
if language == "zh" {
chinese
} else {
english
}
}
fn deconstruct() {
let (a, mut b ) :(bool, bool) = (true, false);
println!("{:?}, {:?}", a, b);
b = true;
assert_eq!(a, b);
}
struct Struct {
e: i32
}
fn main() {
println!("{}", grreet_hello("zh"));
deconstruct();
}