aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-20 19:27:49 +0000
committerAleksey Kladov <[email protected]>2019-02-20 19:27:49 +0000
commite72ad0a2faac98972544dd42316ccf8090717102 (patch)
tree48aaac0fa93d79d2706cd55a30ba93c474962cf7 /crates
parent2b5e336ce7172914686b33c8ac1522911366fcf0 (diff)
fix off by one error
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_syntax/src/parsing/parser_impl/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/parsing/parser_impl/input.rs b/crates/ra_syntax/src/parsing/parser_impl/input.rs
index e9735e526..11b32b9ce 100644
--- a/crates/ra_syntax/src/parsing/parser_impl/input.rs
+++ b/crates/ra_syntax/src/parsing/parser_impl/input.rs
@@ -17,7 +17,7 @@ impl<'t> TokenSource for ParserInput<'t> {
17 } 17 }
18 fn is_token_joint_to_next(&self, pos: TokenPos) -> bool { 18 fn is_token_joint_to_next(&self, pos: TokenPos) -> bool {
19 let idx_curr = pos.0 as usize; 19 let idx_curr = pos.0 as usize;
20 let idx_next = pos.0 as usize; 20 let idx_next = pos.0 as usize + 1;
21 if !(idx_next < self.tokens.len()) { 21 if !(idx_next < self.tokens.len()) {
22 return true; 22 return true;
23 } 23 }