Merge pull request #744 from mxismean/patch-2

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

@ -323,7 +323,7 @@ assert!(matches!(bar, Some(x) if x > 2));
## 变量覆盖
无论是 `match` 还是 `if let`,他们都可以在模式匹配时覆盖掉老的值,绑定新的值:
无论是 `match` 还是 `if let`,他们都可以在模式匹配时覆盖掉老的值,绑定新的值:
```rust
fn main() {

Loading…
Cancel
Save