diff --git a/src/basic/match-pattern/match-if-let.md b/src/basic/match-pattern/match-if-let.md index 3f30909a..71b6bdcf 100644 --- a/src/basic/match-pattern/match-if-let.md +++ b/src/basic/match-pattern/match-if-let.md @@ -274,8 +274,8 @@ match some_u8_value { 俗话说“杀鸡焉用牛刀”,我们完全可以用 `if let` 的方式来实现: ```rust -if let Some(3) = v { - println!("three"); +if let Some(num) = v { + println!("{}", num); } ```