Skip to content

Commit 19f1c31

Browse files
committed
Remove mention of block-comment nesting.
1 parent 8f9bb5d commit 19f1c31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/rust.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ Some productions are defined by exclusion of particular Unicode characters:
157157
~~~~~~~~ {.ebnf .gram}
158158
comment : block_comment | line_comment ;
159159
block_comment : "/*" block_comment_body * "*/" ;
160-
block_comment_body : block_comment | non_star * | '*' non_slash ;
160+
block_comment_body : non_star * | '*' non_slash ;
161161
line_comment : "//" non_eol * ;
162162
~~~~~~~~
163163

164-
Comments in Rust code follow the general C++ style of line and block-comment
165-
forms, with proper nesting of block-comment delimiters. Comments are
166-
interpreted as a form of whitespace.
164+
Comments in Rust code follow the general C++ style of line and block-comment forms,
165+
with no nesting of block-comment delimiters.
166+
Comments are interpreted as a form of whitespace.
167167

168168
## Whitespace
169169

0 commit comments

Comments
 (0)