From e300ba47a4dc1728ed8af449c5eca5c7f6efde28 Mon Sep 17 00:00:00 2001 From: mxismean Date: Thu, 7 Apr 2022 17:09:44 +0800 Subject: [PATCH] Update match-if-let.md --- src/basic/match-pattern/match-if-let.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/match-pattern/match-if-let.md b/src/basic/match-pattern/match-if-let.md index 90715b71..0abc87fe 100644 --- a/src/basic/match-pattern/match-if-let.md +++ b/src/basic/match-pattern/match-if-let.md @@ -323,7 +323,7 @@ assert!(matches!(bar, Some(x) if x > 2)); ## 变量覆盖 -无论是是 `match` 还是 `if let`,他们都可以在模式匹配时覆盖掉老的值,绑定新的值: +无论是 `match` 还是 `if let`,他们都可以在模式匹配时覆盖掉老的值,绑定新的值: ```rust fn main() {