We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8b8d2a commit 31735b0Copy full SHA for 31735b0
src/librustc_lexer/src/cursor.rs
@@ -41,7 +41,7 @@ impl<'a> Cursor<'a> {
41
/// If requested position doesn't exist, `EOF_CHAR` is returned.
42
/// However, getting `EOF_CHAR` doesn't always mean actual end of file,
43
/// it should be checked with `is_eof` method.
44
- pub(crate) fn nth_char(&self, n: usize) -> char {
+ fn nth_char(&self, n: usize) -> char {
45
self.chars().nth(n).unwrap_or(EOF_CHAR)
46
}
47
0 commit comments