From 5b9632276fdf8c812d47d9eff25e028133807782 Mon Sep 17 00:00:00 2001 From: Victor Zagorodny Date: Tue, 4 Jul 2023 21:29:43 +0300 Subject: [PATCH] Fix dot call syntax in exercises to be double colon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Looks like this was not intentional 🙂 and the dot syntax is not coming from Rust --- en/src/crate-module/module.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/src/crate-module/module.md b/en/src/crate-module/module.md index cb2c467..5b02e11 100644 --- a/en/src/crate-module/module.md +++ b/en/src/crate-module/module.md @@ -50,10 +50,10 @@ mod front_of_house { pub fn eat_at_restaurant() { // Call add_to_waitlist with **absolute path**: - __.add_to_waitlist(); + __::add_to_waitlist(); // 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 //1. using keyword `super` //2. using absolute path - __.serve_order(); + __::serve_order(); } fn cook_order() {}