mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
🐞 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:
@ -168,7 +168,7 @@ impl TrafficLight {
|
||||
}
|
||||
|
||||
// 填空,不要使用 `Self` 或其变体
|
||||
pub fn change_state() {
|
||||
pub fn change_state(__) {
|
||||
self.color = "green".to_string()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user