From 9db2306cdcd35e7caace1824f4b65d00bc869458 Mon Sep 17 00:00:00 2001 From: Igor Petruk Date: Sat, 21 Jan 2023 21:53:55 +0000 Subject: [PATCH] Update if-let-expressions.md Mention `let else` in the speaker notes. --- src/control-flow/if-let-expressions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/control-flow/if-let-expressions.md b/src/control-flow/if-let-expressions.md index 813a49a47ea1..9c9a9c6d3cc6 100644 --- a/src/control-flow/if-let-expressions.md +++ b/src/control-flow/if-let-expressions.md @@ -19,6 +19,7 @@ Rust.
* `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. + * For the similar use case consider demonstrating a newly stabilized [`let else`](https://github.com/rust-lang/rust/pull/93628) feature. * A common usage is handling `Some` values when working with `Option`. * Unlike `match`, `if let` does not support guard clauses for pattern matching.