squashed: match alphanumeric; fix array typo.

This commit is contained in:
sweet2honey
2022-04-19 23:05:59 +08:00
parent 66cf51605e
commit 70ade03348
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ fn main() {
// fill the blank with `matches!` to make the code work
for ab in alphabets {
assert!(matches!(ab, 'a'..='z' | 'A'..='Z' | '0' | '9'))
assert!(matches!(ab, 'a'..='z' | 'A'..='Z' | '0'..='9'))
}
}
```