about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-07-21 13:59:17 +0200
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-07-21 13:59:17 +0200
commit401ab612c26d7568f949f2f26710283cd05ca761 (patch)
tree319ef573b0b4de069506e03d7831e5abd67a770f /src/libsyntax/parse
parentd361efac2639fa9dd7f6195e4276a728b8875d7a (diff)
downloadrust-401ab612c26d7568f949f2f26710283cd05ca761.tar.gz
rust-401ab612c26d7568f949f2f26710283cd05ca761.zip
Adjust new suggestions to the suggestion guidelines
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
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();