Fixing a typo at match-iflet

This commit is contained in:
SageCheni
2024-09-19 11:04:36 +08:00
parent 8e0def5f08
commit d89f88f1c3

View File

@ -87,7 +87,7 @@ fn show_message(msg: Message) {
fn main() { fn main() {
let alphabets = ['a', 'E', 'Z', '0', 'x', '9' , 'Y']; let alphabets = ['a', 'E', 'Z', '0', 'x', '9' , 'Y'];
// 使用 `matches` 填空 // 使用 `matches!` 填空
for ab in alphabets { for ab in alphabets {
assert!(__) assert!(__)
} }