Add demonstration of rust's default visibility

This commit is contained in:
Manuel Thalmann 2025-01-16 16:08:15 +01:00
parent 480c36382e
commit 5dc356d98e

View file

@ -13,3 +13,11 @@ mod front_of_house {
fn take_payment() {}
}
}
pub fn eat_at_restaurant() {
// Absolute path
crate::front_of_house::hosting::add_to_waitlist();
// Relative path
front_of_house::hosting::add_to_waitlist();
}