1
Fork 0

Fix "an" usage

This commit is contained in:
acdenisSK 2017-05-06 16:06:38 +02:00
parent 8aad3a3524
commit a257d5afb0
2 changed files with 2 additions and 2 deletions

View file

@ -2707,7 +2707,7 @@ impl<'a> Parser<'a> {
let (span, e) = self.interpolated_or_expr_span(e)?;
let span_of_tilde = lo;
let mut err = self.diagnostic().struct_span_err(span_of_tilde,
"`~` can not be used as an unary operator");
"`~` can not be used as a unary operator");
err.span_label(span_of_tilde, &"did you mean `!`?");
err.help("use `!` instead of `~` if you meant to perform bitwise negation");
err.emit();