Update match-if-let.md

pull/744/head
mxismean 3 years ago committed by GitHub
parent a0f60bda8a
commit e300ba47a4
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