diff options
author | Kevaundray Wedderburn <[email protected]> | 2021-01-06 20:15:48 +0000 |
---|---|---|
committer | Kevaundray Wedderburn <[email protected]> | 2021-01-07 12:09:23 +0000 |
commit | 72b9a4fbd3c12f3250b9157a1d44230e04ec8b22 (patch) | |
tree | c138363e3592c690d841aeedb9ac97d6b2ff4396 /crates/syntax/src/algo.rs | |
parent | 171c3c08fe245938fb25321394233de5fe2abc7c (diff) |
Change <|> to $0 - Rebase
Diffstat (limited to 'crates/syntax/src/algo.rs')
-rw-r--r-- | crates/syntax/src/algo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/algo.rs b/crates/syntax/src/algo.rs index 5696c014f..22ab36cd2 100644 --- a/crates/syntax/src/algo.rs +++ b/crates/syntax/src/algo.rs | |||
@@ -19,7 +19,7 @@ use crate::{ | |||
19 | 19 | ||
20 | /// Returns ancestors of the node at the offset, sorted by length. This should | 20 | /// Returns ancestors of the node at the offset, sorted by length. This should |
21 | /// do the right thing at an edge, e.g. when searching for expressions at `{ | 21 | /// do the right thing at an edge, e.g. when searching for expressions at `{ |
22 | /// <|>foo }` we will get the name reference instead of the whole block, which | 22 | /// $0foo }` we will get the name reference instead of the whole block, which |
23 | /// we would get if we just did `find_token_at_offset(...).flat_map(|t| | 23 | /// we would get if we just did `find_token_at_offset(...).flat_map(|t| |
24 | /// t.parent().ancestors())`. | 24 | /// t.parent().ancestors())`. |
25 | pub fn ancestors_at_offset( | 25 | pub fn ancestors_at_offset( |