mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-21 11:00:26 +00:00
Rename expr -> tail_expr
This commit is contained in:
parent
5c10f2f705
commit
f9707cde68
18 changed files with 34 additions and 29 deletions
|
@ -290,7 +290,7 @@ fn api_walkthrough() {
|
|||
|
||||
// Let's get the `1 + 1` expression!
|
||||
let body: ast::BlockExpr = func.body().unwrap();
|
||||
let expr: ast::Expr = body.expr().unwrap();
|
||||
let expr: ast::Expr = body.tail_expr().unwrap();
|
||||
|
||||
// Enums are used to group related ast nodes together, and can be used for
|
||||
// matching. However, because there are no public fields, it's possible to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue