Skip to content

Commit 90b9e96

Browse files
Centrilpetrochenkov
andcommitted
let_chains: More accurately describe ast::ExprKind::Let.
Co-Authored-By: Vadim Petrochenkov <[email protected]>
1 parent bc72ce6 commit 90b9e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/ast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ pub enum ExprKind {
11151115
Cast(P<Expr>, P<Ty>),
11161116
/// A type ascription (e.g., `42: usize`).
11171117
Type(P<Expr>, P<Ty>),
1118-
/// A `let pats = expr` pseudo-expression that only occurs in the condition
1118+
/// A `let pats = expr` expression that is only semantically allowed in the condition
11191119
/// of `if` / `while` expressions. (e.g., `if let 0 = x { .. }`).
11201120
///
11211121
/// The `Vec<P<Pat>>` is for or-patterns at the top level.

0 commit comments

Comments
 (0)