aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-12-05 21:50:50 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-12-05 21:50:50 +0000
commit5ebfd24eb92f3b198c5b9df1b2d4fc58500ed788 (patch)
treeaad114b0175dd73899b3969c1dab93d2490b5a76 /crates
parent0b1c0ee225a075d25d700fcd1c007615556e2afb (diff)
parent5da245ec33b44c69dc8dcedb6edd91d83452a0d4 (diff)
Merge #257
257: Fix a copy and pasting typo in lexer/ptr.rs r=matklad a=DJMcNab Co-authored-by: DJMcNab <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_syntax/src/lexer/ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/lexer/ptr.rs b/crates/ra_syntax/src/lexer/ptr.rs
index 7e4df51aa..0a473c991 100644
--- a/crates/ra_syntax/src/lexer/ptr.rs
+++ b/crates/ra_syntax/src/lexer/ptr.rs
@@ -28,7 +28,7 @@ impl<'s> Ptr<'s> {
28 } 28 }
29 29
30 /// Gets the nth character from the current. 30 /// 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.
32 pub fn nth(&self, n: u32) -> Option<char> { 32 pub fn nth(&self, n: u32) -> Option<char> {
33 self.chars().nth(n as usize) 33 self.chars().nth(n as usize)
34 } 34 }