Skip to content

Commit 48cb50a

Browse files
committed
fixes stated grammar for block comments, by adding Kleene '+' in two places.
Closes #1588
1 parent 74fb263 commit 48cb50a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: doc/rust.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ Some productions are defined by exclusion of particular Unicode characters:
155155

156156
~~~~~~~~ {.ebnf .gram}
157157
comment : block_comment | line_comment ;
158-
block_comment : "/*" block_comment_body * "*/" ;
159-
block_comment_body : non_star * | '*' non_slash ;
158+
block_comment : "/*" block_comment_body * "*" + "/" ;
159+
block_comment_body : non_star * | '*' + non_slash ;
160160
line_comment : "//" non_eol * ;
161161
~~~~~~~~
162162

0 commit comments

Comments
 (0)