mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
Merge pull request #416 from vittorius/patch-1
Fix dot call syntax in exercises to be double colon
This commit is contained in:
@ -50,10 +50,10 @@ mod front_of_house {
|
|||||||
|
|
||||||
pub fn eat_at_restaurant() {
|
pub fn eat_at_restaurant() {
|
||||||
// Call add_to_waitlist with **absolute path**:
|
// Call add_to_waitlist with **absolute path**:
|
||||||
__.add_to_waitlist();
|
__::add_to_waitlist();
|
||||||
|
|
||||||
// Call with **relative path**
|
// Call with **relative path**
|
||||||
__.add_to_waitlist();
|
__::add_to_waitlist();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ mod back_of_house {
|
|||||||
// FILL in the blank in three ways
|
// FILL in the blank in three ways
|
||||||
//1. using keyword `super`
|
//1. using keyword `super`
|
||||||
//2. using absolute path
|
//2. using absolute path
|
||||||
__.serve_order();
|
__::serve_order();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cook_order() {}
|
fn cook_order() {}
|
||||||
|
Reference in New Issue
Block a user