Skip to content

Commit 2b10942

Browse files
author
Johann
committed
---
yaml --- r: 216883 b: refs/heads/stable c: 6a19046 h: refs/heads/master i: 216881: 579134b 216879: 6a6ce18 v: v3
1 parent aa56725 commit 2b10942

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
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 770f0e95a189e84491845ab1378eb3bc3c896f62
32+
refs/heads/stable: 6a19046423b49672bc71eb07149ae9ef32bc8af5
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/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)