Skip to content

Commit 6678083

Browse files
committed
handle chains in scopes.md as well
1 parent a2df677 commit 6678083

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: src/names/scopes.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ r[names.scopes.pattern-bindings.parameter]
4949
r[names.scopes.pattern-bindings.closure]
5050
* [Closure parameter] bindings are within the closure body.
5151
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.
5555
r[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

0 commit comments

Comments
 (0)