File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ r[names.scopes.pattern-bindings.parameter]
4949r[ names.scopes.pattern-bindings.closure]
5050* [ Closure parameter] bindings are within the closure body.
5151r[ names.scopes.pattern-bindings.loop]
52- * [ ` for ` ] and [ ` while let ` ] bindings are within the loop body.
53- r[ names.scopes.pattern-bindings.if- let]
54- * [ ` if let ` ] bindings are within the consequent block.
52+ * [ ` for ` ] bindings are within the loop body.
53+ r[ names.scopes.pattern-bindings.let-chains ]
54+ * [ ` if let ` ] and [ ` while let ` ] bindings are valid in the following conditions as well as the consequent block.
5555r[ names.scopes.pattern-bindings.match-arm]
5656* [ ` match ` arms] bindings are within the [ match guard] and the match arm expression.
5757
@@ -344,7 +344,8 @@ impl ImplExample {
344344[ `derive` attribute ] : ../attributes/derive.md
345345[ `for` loop ] : ../expressions/loop-expr.md#iterator-loops
346346[ `for` ] : ../expressions/loop-expr.md#iterator-loops
347- [ `if let` ] : ../expressions/if-expr.md#if-let-expressions
347+ [ `if let` ] : ../expressions/if-expr.md#if-let-patterns
348+ [ `while let` ] : expressions/loop-expr.md#while-let-patterns
348349[ `let` statement ] : ../statements.md#let-statements
349350[ `macro_export` ] : ../macros-by-example.md#path-based-scope
350351[ `macro_use` prelude ] : preludes.md#macro_use-prelude
You can’t perform that action at this time.
0 commit comments