Update match-if-let.md

pull/419/head
bekyiu 3 years ago committed by GitHub
parent 4548a8b368
commit bac5f592ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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");
}
```

Loading…
Cancel
Save