File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ try (Reader reader = ...) {
4848
4949## Example — Block Comment
5050
51- Non-nestable block comment like ` /* this is a comment */ ` is pretty easy to parse:
51+ Non-nestable block comment like ` /* this is * in a comment */ ` is pretty easy to parse:
5252
5353``` java {.good}
5454import static com.google.mu.util.CharPredicate.isNot ;
@@ -60,7 +60,7 @@ import static java.util.stream.Collectors.joining;
6060Parser<String > content = Parser . anyOf(consecutive(isNot(' *' )), string(" *" ). notFollowedBy(" /" ));
6161Parser<String > blockComment = content. zeroOrMore(joining())
6262 .between(" /*" , " */" );
63- blockComment. parse(" /* this is comment */ " );
63+ blockComment. parse(" /* this is * in a comment */ " );
6464```
6565
6666That's it.
You can’t perform that action at this time.
0 commit comments