This commit is contained in:
Ivica Šimić 2019-07-05 23:22:09 +02:00
parent 3405fc0b9a
commit 9bdf1995ef
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";