diff --git a/exercises/10_modules/modules2.rs b/exercises/10_modules/modules2.rs index 04154543..06327e2d 100644 --- a/exercises/10_modules/modules2.rs +++ b/exercises/10_modules/modules2.rs @@ -7,14 +7,15 @@ // Execute `rustlings hint modules2` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE + mod delicious_snacks { - // TODO: Fix these use statements - use self::fruits::PEAR as ??? - use self::veggies::CUCUMBER as ??? + + pub use self::fruits::PEAR as fruit; + pub use self::veggies::CUCUMBER as veggie; mod fruits { + pub const PEAR: &'static str = "Pear"; pub const APPLE: &'static str = "Apple"; }