Skip to content

Commit

Permalink
Add a colon, make an error message clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Oct 13, 2012
1 parent 98887cc commit 335e5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/ext/tt/macro_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ fn parse(sess: parse_sess, cfg: ast::crate_cfg, rdr: reader, ms: ~[matcher])
built-in NTs %s or %u other options.",
nts, next_eis.len()));
} else if (bb_eis.len() == 0u && next_eis.len() == 0u) {
return failure(sp, ~"No rules expected the token "
return failure(sp, ~"No rules expected the token: "
+ to_str(rdr.interner(), tok));
} else if (next_eis.len() > 0u) {
/* Now process the next token */
Expand Down

0 comments on commit 335e5ca

Please sign in to comment.