This commit is contained in:
anna 2021-04-13 17:03:16 +02:00
parent c136fbbcb9
commit 5baad95074
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -58,7 +58,7 @@ impl<'a> Cursor<'a> {
}
pub fn peek(&self) -> Option<char> {
self.nth(1)
self.nth(0)
}
pub fn nth(&self, n: usize) -> Option<char> {