did modulule chapter.

This commit is contained in:
gabe 2022-06-27 17:31:48 -05:00
parent 335b1704fc
commit 0730e0f871
4 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[package]
name = "restaurant"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View file

@ -0,0 +1 @@
pub mod hosting;

View file

@ -0,0 +1 @@
pub fn add_to_waitlist() {}

View file

@ -0,0 +1,15 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}
mod front_of_house;
pub use crate::front_of_house::hosting;
pub fn eat_at_restaurant() {
hosting::add_to_waitlist();
}