mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
Merge pull request #533 from Sagecheni/fix-typo
Fixing a typo at match-iflet
This commit is contained in:
@ -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!(__)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user