mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-08-12 06:24:44 +00:00
add practice projects
This commit is contained in:
12
practices/hello-package/src/lib.rs
Normal file
12
practices/hello-package/src/lib.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
mod front_of_house;
|
||||
mod back_of_house;
|
||||
|
||||
pub use crate::front_of_house::hosting;
|
||||
|
||||
pub fn eat_at_restaurant() -> String {
|
||||
front_of_house::hosting::add_to_waitlist();
|
||||
|
||||
back_of_house::cook_order();
|
||||
|
||||
String::from("yummy yummy!")
|
||||
}
|
Reference in New Issue
Block a user