about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-18 00:27:12 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-06-23 01:29:29 +0200
commit8b72e4c8151c176e8f2ec58f95e16c256d2c059b (patch)
tree25ad2090ad08b161af0c6dc75e00e6f599f6eba3 /src/libsyntax
parent86250a666ed763b151dc0747331bddae5d4f46c4 (diff)
downloadrust-8b72e4c8151c176e8f2ec58f95e16c256d2c059b.tar.gz
rust-8b72e4c8151c176e8f2ec58f95e16c256d2c059b.zip
let_chains: Improve documentation for ast::ExprKind::Let(..).
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 4f2fccd20e5..b5a432b9d47 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -1115,8 +1115,11 @@ pub enum ExprKind {
     Cast(P<Expr>, P<Ty>),
     /// A type ascription (e.g., `42: usize`).
     Type(P<Expr>, P<Ty>),
-    /// A `let pat = expr` pseudo-expression that only occurs in the scrutinee
+    /// A `let pats = expr` pseudo-expression that only occurs in the scrutinee
     /// of `if` / `while` expressions. (e.g., `if let 0 = x { .. }`).
+    ///
+    /// The `Vec<P<Pat>>` is for or-patterns at the top level.
+    /// FIXME(54883): Change this to just `P<Pat>`.
     Let(Vec<P<Pat>>, P<Expr>),
     /// An `if` block, with an optional `else` block.
     ///