Skip to content

Commit 5ebfd24

Browse files
bors[bot]DJMcNab
andcommitted
Merge #257
257: Fix a copy and pasting typo in lexer/ptr.rs r=matklad a=DJMcNab Co-authored-by: DJMcNab <[email protected]>
2 parents 0b1c0ee + 5da245e commit 5ebfd24

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

+1-1
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)