let_chains: More accurately describe ast::ExprKind::Let.

Co-Authored-By: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
This commit is contained in:
Mazdak Farrokhzad 2019-06-23 01:17:11 +02:00
parent bc72ce66a1
commit 90b9e96cc3

View File

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