Fix function calls

This commit is contained in:
Alan Du 2018-10-17 19:25:37 -04:00
parent fc8024de51
commit a5da770ec6
10 changed files with 9 additions and 12 deletions

View file

@ -31,7 +31,7 @@ impl<'s> Ptr<'s> {
/// For example, 0 will return the current token, 1 will return the next, etc.
pub fn nth(&self, n: u32) -> Option<char> {
let mut chars = self.chars().peekable();
chars.by_ref().skip(n as usize).next()
chars.by_ref().nth(n as usize)
}
/// Checks whether the current character is `c`.