去除重复代码 (#141)

去除示例代码中的重复行
This commit is contained in:
Wang Qilin 2023-08-23 16:50:07 +08:00 committed by GitHub
parent 6930b0c975
commit 05feb2014d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,6 @@ use crate::front_of_house::hosting;
pub fn eat_at_restaurant() {
hosting::add_to_waitlist();
hosting::add_to_waitlist();
hosting::add_to_waitlist();
}
# fn main() {}
```
@ -42,8 +40,6 @@ use front_of_house::hosting;
pub fn eat_at_restaurant() {
hosting::add_to_waitlist();
hosting::add_to_waitlist();
hosting::add_to_waitlist();
}
# fn main() {}
```
@ -67,8 +63,6 @@ use crate::front_of_house::hosting::add_to_waitlist;
pub fn eat_at_restaurant() {
add_to_waitlist();
add_to_waitlist();
add_to_waitlist();
}
# fn main() {}
```