Skip to content

Commit 8b72e4c

Browse files
committed
let_chains: Improve documentation for ast::ExprKind::Let(..).
1 parent 86250a6 commit 8b72e4c

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
@@ -1115,8 +1115,11 @@ 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 pat = expr` pseudo-expression that only occurs in the scrutinee
1118+
/// A `let pats = expr` pseudo-expression that only occurs in the scrutinee
11191119
/// of `if` / `while` expressions. (e.g., `if let 0 = x { .. }`).
1120+
///
1121+
/// The `Vec<P<Pat>>` is for or-patterns at the top level.
1122+
/// FIXME(54883): Change this to just `P<Pat>`.
11201123
Let(Vec<P<Pat>>, P<Expr>),
11211124
/// An `if` block, with an optional `else` block.
11221125
///

0 commit comments

Comments
 (0)