Merge #257
257: Fix a copy and pasting typo in lexer/ptr.rs r=matklad a=DJMcNab Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
This commit is contained in:
commit
5ebfd24eb9
@ -28,7 +28,7 @@ impl<'s> Ptr<'s> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the nth character from the current.
|
/// Gets the nth character from the current.
|
||||||
/// For example, 0 will return the current token, 1 will return the next, etc.
|
/// For example, 0 will return the current character, 1 will return the next, etc.
|
||||||
pub fn nth(&self, n: u32) -> Option<char> {
|
pub fn nth(&self, n: u32) -> Option<char> {
|
||||||
self.chars().nth(n as usize)
|
self.chars().nth(n as usize)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user