From d89f88f1c3361043d441123e70f46c62a4f907ab Mon Sep 17 00:00:00 2001 From: SageCheni Date: Thu, 19 Sep 2024 11:04:36 +0800 Subject: [PATCH] Fixing a typo at match-iflet --- zh-CN/src/pattern-match/match-iflet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-CN/src/pattern-match/match-iflet.md b/zh-CN/src/pattern-match/match-iflet.md index 757ca7c90..cbf1040f2 100644 --- a/zh-CN/src/pattern-match/match-iflet.md +++ b/zh-CN/src/pattern-match/match-iflet.md @@ -87,7 +87,7 @@ fn show_message(msg: Message) { fn main() { let alphabets = ['a', 'E', 'Z', '0', 'x', '9' , 'Y']; - // 使用 `matches` 填空 + // 使用 `matches!` 填空 for ab in alphabets { assert!(__) }