diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-23 01:17:11 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-23 01:29:29 +0200 |
| commit | 90b9e96cc343b81d8f3e4105b222c573e95ee71c (patch) | |
| tree | 295712e949c84450da1b6b0f5437e58df3dbf434 | |
| parent | bc72ce66a18fdd153aa719937a0a5028642110c6 (diff) | |
| download | rust-90b9e96cc343b81d8f3e4105b222c573e95ee71c.tar.gz rust-90b9e96cc343b81d8f3e4105b222c573e95ee71c.zip | |
let_chains: More accurately describe `ast::ExprKind::Let`.
Co-Authored-By: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
| -rw-r--r-- | src/libsyntax/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index a837ae167a3..21704206cbf 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -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. |
