diff options
author | Jeremy A. Kolb <[email protected]> | 2018-10-31 13:39:31 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-31 18:04:38 +0000 |
commit | e60ef6260f49b2b0438f8649ca71034fbafef631 (patch) | |
tree | 76bcd8e2251e708325a9e30cbb14cfc83e1b939f /crates/ra_analysis/src | |
parent | 3068af79ffd23656ff2d46ac92d9192ce6c813fb (diff) |
Fix typos
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r-- | crates/ra_analysis/src/syntax_ptr.rs | 4 |
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)] |
29 | pub(crate) struct SyntaxPtr { | 29 | pub(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 | } |