Skip to content

Commit 1c36b5d

Browse files
authored
Update if-let-expressions.md (#237)
Mention `let else` in the speaker notes.
1 parent 3029180 commit 1c36b5d

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)