Skip to content

Commit c9b3e86

Browse files
authored
Rollup merge of #73847 - pierwill:pierwill-cursor-doc, r=matthewjasper
Edit cursor.prev() method docs in lexer Fix missing punctuation
2 parents affd950 + 40c74a7 commit c9b3e86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: 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)