murasame 3cc91daba5 progress 50 percent
Change-Id: I8c926bd37d7fefc9143b0accdb1a165a9c1063df
2023-05-19 17:41:56 +08:00

19 lines
404 B
Rust

// modules1.rs
// Execute `rustlings hint modules1` or use the `hint` watch subcommand for a hint.
mod sausage_factory {
// Don't let anybody outside of this module see this!
fn get_secret_recipe() -> String {
String::from("Ginger")
}
pub fn make_sausage() {
get_secret_recipe();
println!("sausage!");
}
}
fn main() {
sausage_factory::make_sausage();
}