about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-03-27 10:16:07 -0700
committerJohn Clements <clements@racket-lang.org>2013-03-27 10:17:37 -0700
commit48cb50af1373a00964f32ba99383608982749ec6 (patch)
treecc056c65adfa77dc3b1be141b33504a5ed0e88a7
parent74fb263f7a8d385635e0861593ce6d72d0e5ec10 (diff)
downloadrust-48cb50af1373a00964f32ba99383608982749ec6.tar.gz
rust-48cb50af1373a00964f32ba99383608982749ec6.zip
fixes stated grammar for block comments, by adding Kleene '+' in two places.
Closes #1588
-rw-r--r--doc/rust.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 60a83662b0e..3435cdbf9fe 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 ;
 line_comment : "//" non_eol * ;
 ~~~~~~~~