diff --git a/exercises/modules/modules1.rs b/exercises/modules/modules1.rs index 0e092c5..259207a 100644 --- a/exercises/modules/modules1.rs +++ b/exercises/modules/modules1.rs @@ -2,7 +2,7 @@ // Make me compile! Scroll down for hints :) mod sausage_factory { - fn make_sausage() { + pub fn make_sausage() { println!("sausage!"); } } diff --git a/exercises/modules/modules2.rs b/exercises/modules/modules2.rs index 3cfa36d..5ce1103 100644 --- a/exercises/modules/modules2.rs +++ b/exercises/modules/modules2.rs @@ -2,8 +2,8 @@ // Make me compile! Scroll down for hints :) mod delicious_snacks { - use self::fruits::PEAR as fruit; - use self::veggies::CUCUMBER as veggie; + pub use self::fruits::PEAR as fruit; + pub use self::veggies::CUCUMBER as veggie; mod fruits { pub const PEAR: &'static str = "Pear";