mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
Merge pull request #230 from tabris233/fix-blank-miss
🐞 fix(method.md): 缺少空白 / miss blank
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -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