Skip to content

Commit

Permalink
Edit cursor.prev() method docs in lexer
Browse files Browse the repository at this point in the history
Fix missing punctuation
  • Loading branch information
pierwill committed Jun 28, 2020
1 parent 25687ca commit 40c74a7
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 40c74a7

Please sign in to comment.