aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/syntax/src/lib.rs')
-rw-r--r--crates/syntax/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/lib.rs b/crates/syntax/src/lib.rs
index da151e328..ea7482bb1 100644
--- a/crates/syntax/src/lib.rs
+++ b/crates/syntax/src/lib.rs
@@ -290,7 +290,7 @@ fn api_walkthrough() {
290 290
291 // Let's get the `1 + 1` expression! 291 // Let's get the `1 + 1` expression!
292 let body: ast::BlockExpr = func.body().unwrap(); 292 let body: ast::BlockExpr = func.body().unwrap();
293 let expr: ast::Expr = body.expr().unwrap(); 293 let expr: ast::Expr = body.tail_expr().unwrap();
294 294
295 // Enums are used to group related ast nodes together, and can be used for 295 // Enums are used to group related ast nodes together, and can be used for
296 // matching. However, because there are no public fields, it's possible to 296 // matching. However, because there are no public fields, it's possible to