Rollup merge of #48403 - lukaslueg:casted, r=steveklabnik

Fix spelling s/casted/cast/

r? @GuillaumeGomez
This commit is contained in:
kennytm
2018-03-06 16:25:28 +08:00
committed by GitHub
8 changed files with 18 additions and 18 deletions

View File

@@ -3114,7 +3114,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,
&format!("try {} the casted value", op_verb),
&format!("try {} the cast value", op_verb),
format!("({})", expr_str));
err.emit();