Skip to content

Commit a96031d

Browse files
igor-petrukNoahDragon
authored andcommitted
Update if-let-expressions.md (google#237)
Mention `let else` in the speaker notes.
1 parent 72cf387 commit a96031d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/control-flow/if-let-expressions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Rust.
1919
<details>
2020

2121
* `if let` can be more concise than `match`, e.g., when only one case is interesting. In contrast, `match` requires all branches to be covered.
22+
* For the similar use case consider demonstrating a newly stabilized [`let else`](https://github.com/rust-lang/rust/pull/93628) feature.
2223
* A common usage is handling `Some` values when working with `Option`.
2324
* Unlike `match`, `if let` does not support guard clauses for pattern matching.
2425

0 commit comments

Comments
 (0)