mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Fix a copy and pasting typo
This commit is contained in:
@@ -28,7 +28,7 @@ pub fn current(&self) -> Option<char> {
|
||||
}
|
||||
|
||||
/// 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> {
|
||||
self.chars().nth(n as usize)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user