Skip to content

Commit c1a960a

Browse files
committed
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)
2 parents 2cf6af1 + bb34a3e commit c1a960a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ after_failure:
194194

195195
# Save tagged docker images we created and load them if they're available
196196
# Travis saves caches whether the build failed or not, nuke rustsrc if
197-
# the failure was while updating it (as it may be in an bad state)
197+
# the failure was while updating it (as it may be in a bad state)
198198
# https://github.com/travis-ci/travis-ci/issues/4472
199199
before_cache:
200200
- docker history -q rust-ci |

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2707,7 +2707,7 @@ impl<'a> Parser<'a> {
27072707
let (span, e) = self.interpolated_or_expr_span(e)?;
27082708
let span_of_tilde = lo;
27092709
let mut err = self.diagnostic().struct_span_err(span_of_tilde,
2710-
"`~` can not be used as an unary operator");
2710+
"`~` can not be used as a unary operator");
27112711
err.span_label(span_of_tilde, &"did you mean `!`?");
27122712
err.help("use `!` instead of `~` if you meant to perform bitwise negation");
27132713
err.emit();

src/test/ui/did_you_mean/issue-41679.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: `~` can not be used as an unary operator
1+
error: `~` can not be used as a unary operator
22
--> $DIR/issue-41679.rs:12:13
33
|
44
12 | let x = ~1;

0 commit comments

Comments
 (0)