Skip to content

Commit 31735b0

Browse files
committed
librustc_lexer: Make nth_char method private
1 parent e8b8d2a commit 31735b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_lexer/src/cursor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<'a> Cursor<'a> {
4141
/// If requested position doesn't exist, `EOF_CHAR` is returned.
4242
/// However, getting `EOF_CHAR` doesn't always mean actual end of file,
4343
/// it should be checked with `is_eof` method.
44-
pub(crate) fn nth_char(&self, n: usize) -> char {
44+
fn nth_char(&self, n: usize) -> char {
4545
self.chars().nth(n).unwrap_or(EOF_CHAR)
4646
}
4747

0 commit comments

Comments
 (0)