Skip to content

Commit

Permalink
Fix markdown rendering in librustc_lexer docs
Browse files Browse the repository at this point in the history
Use back-ticks instead of quotation marks in docs for the block comment
variant of TokenKind.
  • Loading branch information
pierwill committed Jun 28, 2020
1 parent 25687ca commit 49c1018
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc_lexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ pub enum TokenKind {
// Multi-char tokens:
/// "// comment"
LineComment,
/// "/* block comment */"
/// Block comments can be recursive, so the sequence like "/* /* */"
/// `/* block comment */`
///
/// Block comments can be recursive, so the sequence like `/* /* */`
/// will not be considered terminated and will result in a parsing error.
BlockComment { terminated: bool },
/// Any whitespace characters sequence.
Expand Down

0 comments on commit 49c1018

Please sign in to comment.