Skip to content

Commit 8d638f4

Browse files
authored
Rollup merge of #73848 - pierwill:pierwill-lexer-block-doc, r=jonas-schievink
Fix markdown rendering in librustc_lexer docs Use back-ticks instead of quotation marks in docs for the block comment variant of TokenKind. ## [Before](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lexer/enum.TokenKind.html#variant.BlockComment) and after <img width="1103" alt="Screen Shot 2020-06-28 at 1 22 30 PM" src="https://user-images.githubusercontent.com/19642016/85957562-446a8380-b943-11ea-913a-442cf7744083.png"> <img width="1015" alt="Screen Shot 2020-06-28 at 1 28 29 PM" src="https://user-images.githubusercontent.com/19642016/85957566-4af8fb00-b943-11ea-8fef-a09c1d586772.png"> ## Question For visual consistency, should we use back-ticks throughout the docs for these enum variants?
2 parents e04070a + 49c1018 commit 8d638f4

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)