aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_analysis/src/syntax_ptr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/syntax_ptr.rs b/crates/ra_analysis/src/syntax_ptr.rs
index adbff4806..6dc89cb43 100644
--- a/crates/ra_analysis/src/syntax_ptr.rs
+++ b/crates/ra_analysis/src/syntax_ptr.rs
@@ -23,7 +23,7 @@ fn resolve_syntax_ptr(db: &impl SyntaxDatabase, ptr: SyntaxPtr) -> SyntaxNode {
23} 23}
24 24
25/// SyntaxPtr is a cheap `Copy` id which identifies a particular syntax node, 25/// SyntaxPtr is a cheap `Copy` id which identifies a particular syntax node,
26/// without retainig syntax tree in memory. You need to explicitelly `resovle` 26/// without retaining syntax tree in memory. You need to explicitly `resolve`
27/// `SyntaxPtr` to get a `SyntaxNode` 27/// `SyntaxPtr` to get a `SyntaxNode`
28#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] 28#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
29pub(crate) struct SyntaxPtr { 29pub(crate) struct SyntaxPtr {
@@ -80,7 +80,7 @@ impl LocalSyntaxPtr {
80 } 80 }
81 curr = curr.children() 81 curr = curr.children()
82 .find(|it| self.range.is_subrange(&it.range())) 82 .find(|it| self.range.is_subrange(&it.range()))
83 .unwrap_or_else(|| panic!("can't resovle local ptr to SyntaxNode: {:?}", self)) 83 .unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self))
84 } 84 }
85 } 85 }
86} 86}