mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
fix off by one error
This commit is contained in:
parent
2b5e336ce7
commit
e72ad0a2fa
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ impl<'t> TokenSource for ParserInput<'t> {
|
|||
}
|
||||
fn is_token_joint_to_next(&self, pos: TokenPos) -> bool {
|
||||
let idx_curr = pos.0 as usize;
|
||||
let idx_next = pos.0 as usize;
|
||||
let idx_next = pos.0 as usize + 1;
|
||||
if !(idx_next < self.tokens.len()) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue