Complete modules section

This commit is contained in:
Paul Czeresko 2019-07-22 10:17:47 -04:00
parent e32ff52028
commit b3b9da0fbf
2 changed files with 3 additions and 3 deletions
exercises/modules

View file

@ -2,7 +2,7 @@
// Make me compile! Scroll down for hints :)
mod sausage_factory {
fn make_sausage() {
pub fn make_sausage() {
println!("sausage!");
}
}

View file

@ -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";