Fix dot call syntax in exercises to be double colon

Looks like this was not intentional 🙂 and the dot syntax is not coming from Rust
This commit is contained in:
Victor Zagorodny
2023-07-04 21:29:43 +03:00
committed by GitHub
parent d5f4b58d8c
commit 5b9632276f

View File

@ -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() {}