From 90b9e96cc343b81d8f3e4105b222c573e95ee71c Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Sun, 23 Jun 2019 01:17:11 +0200 Subject: [PATCH] let_chains: More accurately describe `ast::ExprKind::Let`. Co-Authored-By: Vadim Petrochenkov --- src/libsyntax/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index a837ae167a30..21704206cbf8 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1115,7 +1115,7 @@ pub enum ExprKind { Cast(P, P), /// A type ascription (e.g., `42: usize`). Type(P, P), - /// 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>` is for or-patterns at the top level.