aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/parser_impl/input.rs
diff options
context:
space:
mode:
authorcsmoe <[email protected]>2019-01-01 08:09:51 +0000
committercsmoe <[email protected]>2019-01-04 04:21:47 +0000
commitdf591a1e48a876653f1f48ed595d1754470d116f (patch)
tree423a619b45a6c9aacdc09275a731b3255743531e /crates/ra_syntax/src/parser_impl/input.rs
parentb01e707dba7810c3d28c82a84dec9064cc01d3c8 (diff)
doc parsing events
Diffstat (limited to 'crates/ra_syntax/src/parser_impl/input.rs')
-rw-r--r--crates/ra_syntax/src/parser_impl/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/parser_impl/input.rs b/crates/ra_syntax/src/parser_impl/input.rs
index 083a7aa15..7fde5b3ab 100644
--- a/crates/ra_syntax/src/parser_impl/input.rs
+++ b/crates/ra_syntax/src/parser_impl/input.rs
@@ -70,7 +70,7 @@ impl<'t> ParserInput<'t> {
70 self.start_offsets[idx] 70 self.start_offsets[idx]
71 } 71 }
72 72
73 /// Get the raw text of a toen at given input position. 73 /// Get the raw text of a token at given input position.
74 pub fn token_text(&self, pos: InputPosition) -> &'t str { 74 pub fn token_text(&self, pos: InputPosition) -> &'t str {
75 let idx = pos.0 as usize; 75 let idx = pos.0 as usize;
76 if !(idx < self.tokens.len()) { 76 if !(idx < self.tokens.len()) {