Skip to content

Commit 5da245e

Browse files
committed
Fix a copy and pasting typo
1 parent 0b1c0ee commit 5da245e

File tree

1 file changed

+1
-1
lines changed
  • crates/ra_syntax/src/lexer

1 file changed

+1
-1
lines changed

crates/ra_syntax/src/lexer/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<'s> Ptr<'s> {
2828
}
2929

3030
/// Gets the nth character from the current.
31-
/// For example, 0 will return the current token, 1 will return the next, etc.
31+
/// For example, 0 will return the current character, 1 will return the next, etc.
3232
pub fn nth(&self, n: u32) -> Option<char> {
3333
self.chars().nth(n as usize)
3434
}

0 commit comments

Comments
 (0)