From e571b92c684ab1afc48043fba61feb9ecd1545a6 Mon Sep 17 00:00:00 2001 From: Quan Dong <604925267@qq.com> Date: Tue, 3 May 2022 03:14:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(method.md):=20=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E7=A9=BA=E7=99=BD=20/=20miss=20blank?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 练习 3 中,第 12 行, 函数参数应该有两个下划线表示空缺。 --- In Exercise 3, line 12, function arguments should have two underscores to indicate that they are empty. --- en/src/method.md | 2 +- zh-CN/src/method.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/src/method.md b/en/src/method.md index 477ddcc..d103e26 100644 --- a/en/src/method.md +++ b/en/src/method.md @@ -174,7 +174,7 @@ impl TrafficLight { } // fill in the blank, DON'T use any variants of `Self` - pub fn change_state() { + pub fn change_state(__) { self.color = "green".to_string() } } diff --git a/zh-CN/src/method.md b/zh-CN/src/method.md index 5d20ee9..87f44ac 100644 --- a/zh-CN/src/method.md +++ b/zh-CN/src/method.md @@ -168,7 +168,7 @@ impl TrafficLight { } // 填空,不要使用 `Self` 或其变体 - pub fn change_state() { + pub fn change_state(__) { self.color = "green".to_string() } }