Merge pull request #419 from bekyiu/patch-1

Update match-if-let.md
pull/421/head
孙飞Sunface 3 years ago committed by GitHub
commit 0cd3666614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -258,7 +258,7 @@ match some_u8_value {
杀鸡焉用牛刀,可以用 `if let` 的方式来实现: 杀鸡焉用牛刀,可以用 `if let` 的方式来实现:
```rust ```rust
if let Some(3) = some_u8_value { if let Some(3) = v {
println!("three"); println!("three");
} }
``` ```

Loading…
Cancel
Save