From: pierwill Date: Sun, 28 Jun 2020 19:32:58 +0000 (-0700) Subject: Edit cursor.prev() method docs in lexer X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;ds=sidebyside;h=40c74a7eb709f3f072d35b4264c614a9a8f6c2f9;p=rust.git Edit cursor.prev() method docs in lexer Fix missing punctuation --- diff --git a/src/librustc_lexer/src/cursor.rs b/src/librustc_lexer/src/cursor.rs index ed0911379c4..c0045d3f79b 100644 --- a/src/librustc_lexer/src/cursor.rs +++ b/src/librustc_lexer/src/cursor.rs @@ -23,8 +23,8 @@ pub(crate) fn new(input: &'a str) -> 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)] {