diff options
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 1b6c3cf94e4..b3291e9e0b5 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2807,9 +2807,9 @@ impl<'a> Parser<'a> { let cur_pos = cm.lookup_char_pos(self.span.lo); let op_pos = cm.lookup_char_pos(cur_op_span.hi); if cur_pos.line != op_pos.line { - err.span_suggestion(cur_op_span, - "did you mean to end the statement here instead?", - ";".to_string()); + err.span_suggestion_short(cur_op_span, + "did you mean to use `;` here?", + ";".to_string()); } return Err(err); } |
