mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Fix a copy and pasting typo
This commit is contained in:
parent
0b1c0ee225
commit
5da245ec33
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue