Skip to content

Commit

Permalink
Rollup merge of #73847 - pierwill:pierwill-cursor-doc, r=matthewjasper
Browse files Browse the repository at this point in the history
Edit cursor.prev() method docs in lexer

Fix missing punctuation
  • Loading branch information
Manishearth authored Jul 1, 2020
2 parents affd950 + 40c74a7 commit c9b3e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_lexer/src/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ impl<'a> Cursor<'a> {
}
}

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

0 comments on commit c9b3e86

Please sign in to comment.