File tree 1 file changed +5
-4
lines changed
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]
49
49
r[ names.scopes.pattern-bindings.closure]
50
50
* [ Closure parameter] bindings are within the closure body.
51
51
r[ 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.
55
55
r[ names.scopes.pattern-bindings.match-arm]
56
56
* [ ` match ` arms] bindings are within the [ match guard] and the match arm expression.
57
57
@@ -344,7 +344,8 @@ impl ImplExample {
344
344
[ `derive` attribute ] : ../attributes/derive.md
345
345
[ `for` loop ] : ../expressions/loop-expr.md#iterator-loops
346
346
[ `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
348
349
[ `let` statement ] : ../statements.md#let-statements
349
350
[ `macro_export` ] : ../macros-by-example.md#path-based-scope
350
351
[ `macro_use` prelude ] : preludes.md#macro_use-prelude
You can’t perform that action at this time.
0 commit comments