Issue #50974: Change text of suggestion to be more direct

This commit is contained in:
Lamb
2018-05-29 20:15:47 +02:00
committed by Pietro Albini
parent 7969b78222
commit 783815d219

View File

@@ -777,7 +777,7 @@ impl<'a> Parser<'a> {
} else {
err.span_label(self.span, "expected identifier");
if self.token == token::Comma {
err.span_suggestion(self.span, "try removing a comma", ",".into());
err.span_suggestion(self.span, "remove this comma", ",".into());
}
}
err