about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-03-28 10:19:08 -0700
committerJohn Clements <clements@racket-lang.org>2013-03-28 10:19:08 -0700
commit81d30ade6177fcfd2319ce139b98722bbe7f4ed3 (patch)
tree6afa437ca41cb40016ed2bb413c12fee32aaa3f1
parent48cb50af1373a00964f32ba99383608982749ec6 (diff)
downloadrust-81d30ade6177fcfd2319ce139b98722bbe7f4ed3.tar.gz
rust-81d30ade6177fcfd2319ce139b98722bbe7f4ed3.zip
fix another subtle bug in comment regex
-rw-r--r--doc/rust.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 3435cdbf9fe..b45a426c6b3 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -155,8 +155,8 @@ Some productions are defined by exclusion of particular Unicode characters:
 
 ~~~~~~~~ {.ebnf .gram}
 comment : block_comment | line_comment ;
-block_comment : "/*" block_comment_body * "*" + "/" ;
-block_comment_body : non_star * | '*' + non_slash ;
+block_comment : "/*" block_comment_body * '*' + '/' ;
+block_comment_body : non_star * | '*' + non_slash_or_star ;
 line_comment : "//" non_eol * ;
 ~~~~~~~~