Skip to content

Commit 49c1018

Browse files
committed
Fix markdown rendering in librustc_lexer docs
Use back-ticks instead of quotation marks in docs for the block comment variant of TokenKind.
1 parent 25687ca commit 49c1018

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_lexer/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ pub enum TokenKind {
5151
// Multi-char tokens:
5252
/// "// comment"
5353
LineComment,
54-
/// "/* block comment */"
55-
/// Block comments can be recursive, so the sequence like "/* /* */"
54+
/// `/* block comment */`
55+
///
56+
/// Block comments can be recursive, so the sequence like `/* /* */`
5657
/// will not be considered terminated and will result in a parsing error.
5758
BlockComment { terminated: bool },
5859
/// Any whitespace characters sequence.

0 commit comments

Comments
 (0)