From 401ab612c26d7568f949f2f26710283cd05ca761 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Fri, 21 Jul 2017 13:59:17 +0200 Subject: Adjust new suggestions to the suggestion guidelines --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index ae3edfcbf32..1db58b5c085 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2936,7 +2936,7 @@ impl<'a> Parser<'a> { let expr_str = self.sess.codemap().span_to_snippet(expr.span) .unwrap_or(pprust::expr_to_string(&expr)); err.span_suggestion(expr.span, - "if you want to compare the casted value then write:", + "try comparing the casted value", format!("({})", expr_str)); err.emit(); -- cgit 1.4.1-3-g733a5