Skip to content

Commit 245c7fb

Browse files
committed
auto merge of #18995 : alfie/rust/comment-docs, r=aturon
Start comment is a string literal while end comment is made up of two character literals. This change is to make them consistent.
2 parents aad7547 + a893397 commit 245c7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Some productions are defined by exclusion of particular Unicode characters:
133133

134134
```{.ebnf .gram}
135135
comment : block_comment | line_comment ;
136-
block_comment : "/*" block_comment_body * '*' + '/' ;
136+
block_comment : "/*" block_comment_body * "*/" ;
137137
block_comment_body : [block_comment | character] * ;
138138
line_comment : "//" non_eol * ;
139139
```

0 commit comments

Comments
 (0)