From bac5f592ea216f0c7808b7c8117be27e2c18a983 Mon Sep 17 00:00:00 2001 From: bekyiu <651731457@qq.com> Date: Tue, 15 Feb 2022 09:27:04 +0800 Subject: [PATCH] Update match-if-let.md --- book/contents/basic/match-pattern/match-if-let.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/basic/match-pattern/match-if-let.md b/book/contents/basic/match-pattern/match-if-let.md index 2cac6f78..929c622f 100644 --- a/book/contents/basic/match-pattern/match-if-let.md +++ b/book/contents/basic/match-pattern/match-if-let.md @@ -258,7 +258,7 @@ match some_u8_value { 杀鸡焉用牛刀,可以用 `if let` 的方式来实现: ```rust -if let Some(3) = some_u8_value { +if let Some(3) = v { println!("three"); } ```