From 5baad9507499b05d11d9557fff2f94019087d8cc Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 13 Apr 2021 17:03:16 +0200 Subject: [PATCH] ffs --- src/lex/cursor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {