Skip to content

Commit

Permalink
feat: solve one module problem
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstey committed Aug 25, 2023
1 parent d68e1c8 commit 1e4ce91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/modules/modules1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
// Execute `rustlings hint modules1` or use the `hint` watch subcommand for a
// hint.

// I AM NOT DONE

mod sausage_factory {
pub mod sausage_factory {
// Don't let anybody outside of this module see this!
fn get_secret_recipe() -> String {
String::from("Ginger")
}

fn make_sausage() {
pub fn make_sausage() {
get_secret_recipe();
println!("sausage!");
}
}

fn main() {

sausage_factory::make_sausage();
}

0 comments on commit 1e4ce91

Please sign in to comment.