diff options
| author | Johann <git@johann-hofmann.com> | 2015-05-11 02:40:02 +0200 |
|---|---|---|
| committer | Johann <git@johann-hofmann.com> | 2015-05-11 02:40:02 +0200 |
| commit | 6a19046423b49672bc71eb07149ae9ef32bc8af5 (patch) | |
| tree | 7cae90a422f6e045c19c0774fcc94af1ef3a8fc7 /src/doc/reference.md | |
| parent | 770f0e95a189e84491845ab1378eb3bc3c896f62 (diff) | |
| download | rust-6a19046423b49672bc71eb07149ae9ef32bc8af5.tar.gz rust-6a19046423b49672bc71eb07149ae9ef32bc8af5.zip | |
Four spaces indent, rephrasing
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 89f74d8d87a..e6afa695b2c 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -3066,12 +3066,15 @@ block will execute, otherwise flow proceeds to the first `else` block that follo ``` let dish = ("Ham", "Eggs"); -if let ("Bacon", b) = dish { // will not execute because let is refuted - println!("Bacon is served with {}", b); + +// this body will be skipped because the pattern is refuted +if let ("Bacon", b) = dish { + println!("Bacon is served with {}", b); } -if let ("Ham", b) = dish { // will execute - println!("Ham is served with {}", b); +// this body will execute +if let ("Ham", b) = dish { + println!("Ham is served with {}", b); } ``` |
