diff --git a/src/lex/cursor.rs b/src/lex/cursor.rs index 02bad56..d9d3342 100644 --- a/src/lex/cursor.rs +++ b/src/lex/cursor.rs @@ -58,7 +58,7 @@ impl<'a> Cursor<'a> { } pub fn peek(&self) -> Option { - self.nth(1) + self.nth(0) } pub fn nth(&self, n: usize) -> Option {