Skip to content

Commit ccb40bc

Browse files
committed
let_chains: Improve documentation for ast::ExprKind::Let(..).
1 parent b840eb1 commit ccb40bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libsyntax/ast.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,8 +1134,11 @@ pub enum ExprKind {
11341134
Cast(P<Expr>, P<Ty>),
11351135
/// A type ascription (e.g., `42: usize`).
11361136
Type(P<Expr>, P<Ty>),
1137-
/// A `let pat = expr` pseudo-expression that only occurs in the scrutinee
1137+
/// A `let pats = expr` pseudo-expression that only occurs in the scrutinee
11381138
/// of `if` / `while` expressions. (e.g., `if let 0 = x { .. }`).
1139+
///
1140+
/// The `Vec<P<Pat>>` is for or-patterns at the top level.
1141+
/// FIXME(54883): Change this to just `P<Pat>`.
11391142
Let(Vec<P<Pat>>, P<Expr>),
11401143
/// An `if` block, with an optional `else` block.
11411144
///

0 commit comments

Comments
 (0)