Skip to content

Commit 783815d

Browse files
lambtowolfpietroalbini
authored andcommitted
Issue #50974: Change text of suggestion to be more direct
1 parent 7969b78 commit 783815d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ impl<'a> Parser<'a> {
777777
} else {
778778
err.span_label(self.span, "expected identifier");
779779
if self.token == token::Comma {
780-
err.span_suggestion(self.span, "try removing a comma", ",".into());
780+
err.span_suggestion(self.span, "remove this comma", ",".into());
781781
}
782782
}
783783
err

0 commit comments

Comments
 (0)