🐞 fix(method.md): 缺少空白 / miss blank

练习 3 中,第 12 行, 函数参数应该有两个下划线表示空缺。
---
In Exercise 3, line 12, function arguments should have two underscores to indicate that they are empty.
This commit is contained in:
Quan Dong
2022-05-03 03:14:23 +08:00
committed by GitHub
parent 69f59509ae
commit e571b92c68
2 changed files with 2 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ impl TrafficLight {
} }
// fill in the blank, DON'T use any variants of `Self` // fill in the blank, DON'T use any variants of `Self`
pub fn change_state() { pub fn change_state(__) {
self.color = "green".to_string() self.color = "green".to_string()
} }
} }

View File

@@ -168,7 +168,7 @@ impl TrafficLight {
} }
// 填空,不要使用 `Self` 或其变体 // 填空,不要使用 `Self` 或其变体
pub fn change_state() { pub fn change_state(__) {
self.color = "green".to_string() self.color = "green".to_string()
} }
} }