Skip to content

Commit 8a6961f

Browse files
author
Johann
committed
---
yaml --- r: 204990 b: refs/heads/tmp c: 6a19046 h: refs/heads/master v: v3
1 parent 85c5912 commit 8a6961f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: f0213d8ffb128a16f94af7ee985dc61484596163
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: 770f0e95a189e84491845ab1378eb3bc3c896f62
35+
refs/heads/tmp: 6a19046423b49672bc71eb07149ae9ef32bc8af5
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: f0ac7e04e647381e2bb87de1f3d0b108acb24d06
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/src/doc/reference.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,12 +3066,15 @@ block will execute, otherwise flow proceeds to the first `else` block that follo
30663066

30673067
```
30683068
let dish = ("Ham", "Eggs");
3069-
if let ("Bacon", b) = dish { // will not execute because let is refuted
3070-
println!("Bacon is served with {}", b);
3069+
3070+
// this body will be skipped because the pattern is refuted
3071+
if let ("Bacon", b) = dish {
3072+
println!("Bacon is served with {}", b);
30713073
}
30723074
3073-
if let ("Ham", b) = dish { // will execute
3074-
println!("Ham is served with {}", b);
3075+
// this body will execute
3076+
if let ("Ham", b) = dish {
3077+
println!("Ham is served with {}", b);
30753078
}
30763079
```
30773080

0 commit comments

Comments
 (0)