aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-01-05 12:45:46 +0000
committerAleksey Kladov <[email protected]>2021-01-05 12:51:13 +0000
commitf9707cde6801f13cc4c20e3e08cee07ef23b8563 (patch)
tree56be395be11c1315ace19c50ad528c0af5ac0a16 /crates/completion/src
parent5c10f2f705d6757b9821387a5be759789b7ee480 (diff)
Rename expr -> tail_expr
Diffstat (limited to 'crates/completion/src')
-rw-r--r--crates/completion/src/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/completion/src/context.rs b/crates/completion/src/context.rs
index 41de324d8..f979697ab 100644
--- a/crates/completion/src/context.rs
+++ b/crates/completion/src/context.rs
@@ -458,7 +458,7 @@ impl<'a> CompletionContext<'a> {
458 } 458 }
459 if let Some(block) = ast::BlockExpr::cast(node) { 459 if let Some(block) = ast::BlockExpr::cast(node) {
460 return Some( 460 return Some(
461 block.expr().map(|e| e.syntax().text_range()) 461 block.tail_expr().map(|e| e.syntax().text_range())
462 == Some(name_ref.syntax().text_range()), 462 == Some(name_ref.syntax().text_range()),
463 ); 463 );
464 } 464 }