Merge pull request #416 from vittorius/patch-1

Fix dot call syntax in exercises to be double colon
This commit is contained in:
Sunface
2025-04-25 12:08:46 +08:00
committed by GitHub

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