Add demonstration of rust's default visibility
This commit is contained in:
parent
480c36382e
commit
5dc356d98e
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue