mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
squashed: match alphanumeric; fix array typo.
This commit is contained in:
@ -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'))
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user