]> git.lizzy.rs Git - rust.git/commitdiff
Edit cursor.prev() method docs in lexer
authorpierwill <pierwill@users.noreply.github.com>
Sun, 28 Jun 2020 19:32:58 +0000 (12:32 -0700)
committerpierwill <pierwill@users.noreply.github.com>
Sun, 28 Jun 2020 20:24:17 +0000 (13:24 -0700)
Fix missing punctuation

src/librustc_lexer/src/cursor.rs

index ed0911379c4b3ccf79204a7c97706ba531186ace..c0045d3f79be1ffca53fd956aa0251a53d6a8692 100644 (file)
@@ -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)]
         {