From 40c74a7eb709f3f072d35b4264c614a9a8f6c2f9 Mon Sep 17 00:00:00 2001 From: pierwill Date: Sun, 28 Jun 2020 12:32:58 -0700 Subject: [PATCH] Edit cursor.prev() method docs in lexer Fix missing punctuation --- src/librustc_lexer/src/cursor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_lexer/src/cursor.rs b/src/librustc_lexer/src/cursor.rs index ed0911379c4b3..c0045d3f79be1 100644 --- a/src/librustc_lexer/src/cursor.rs +++ b/src/librustc_lexer/src/cursor.rs @@ -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)] {