mod english {
pub fn hello(name: &str) {
println!("Hello, {}", name);
}
}
mod chinese {
pub fn hello(name: &str) {
println!("你好,{}", name);
}
}
fn main() {
// Call modules
use english;
use chinese;
// Call two functions with the same name
english::hello("Michael");
chinese::hello("麥可");
}