Skip to content

Commit 40c74a7

Browse files
committed
Edit cursor.prev() method docs in lexer
Fix missing punctuation
1 parent 25687ca commit 40c74a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_lexer/src/cursor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ impl<'a> Cursor<'a> {
2323
}
2424
}
2525

26-
/// For debug assertions only
27-
/// Returns the last eaten symbol (or '\0' in release builds).
26+
/// Returns the last eaten symbol (or `'\0'` in release builds).
27+
/// (For debug assertions only.)
2828
pub(crate) fn prev(&self) -> char {
2929
#[cfg(debug_assertions)]
3030
{

0 commit comments

Comments
 (0)