about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-06 19:45:10 +0000
committerbors <bors@rust-lang.org>2017-05-06 19:45:10 +0000
commitc1a960a03108a0f71ec6c4d9e7291722eba5abbc (patch)
treef30275db50d5ac45609adf7c8280aa6e5bb35144 /src/libsyntax
parent2cf6af17556bafae5d7925b4f97ca7cf142d7284 (diff)
parentbb34a3e16bd5bff5187d554bfc6c03314a353e17 (diff)
downloadrust-c1a960a03108a0f71ec6c4d9e7291722eba5abbc.tar.gz
rust-c1a960a03108a0f71ec6c4d9e7291722eba5abbc.zip
Auto merge of #41786 - acdenisSK:an_to_a, r=frewsxcv
Fix "an" usage

Since the pr i reviewed on got merged way before the author had a chance to quickly change it, i just did it myself. (Or well, someone else asked me to, if you want me to be honest)
Diffstat (limited to 'src/libsyntax')
-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 f99f39dae6b..268b3d08a80 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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();