ABel-216 86ebcd691f Revert "done"
This reverts commit 817f262b7b41e62ea36e58b02f00dccfdf14fba8.
2024-02-27 20:53:46 +00:00

23 lines
424 B
Rust

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