Skip to content

Commit

Permalink
Auto merge of rust-lang#12868 - VitalikButerinEth:master, r=llogiq
Browse files Browse the repository at this point in the history
chore: fix some comments

 fix some comments

----

changelog: none
  • Loading branch information
bors committed Jun 1, 2024
2 parents 28e887f + b92501f commit 436675b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/ui/double_neg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ fn main() {
-x;
-(-x);
--x;
//~^ ERROR: `--x` could be misinterpreted as pre-decrement by C programmers, is usuall
//~^ ERROR: `--x` could be misinterpreted as pre-decrement by C programmers, is usually
//~| NOTE: `-D clippy::double-neg` implied by `-D warnings`
}
2 changes: 1 addition & 1 deletion tests/ui/infinite_loops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn can_break_both_inner_and_outer(cond: bool) {
}

fn break_wrong_loop(cond: bool) {
// 'inner has statement to break 'outer loop, but it was breaked early by a labeled child loop
// 'inner has statement to break 'outer loop, but it was broken out of early by a labeled child loop
'outer: loop {
loop {
//~^ ERROR: infinite loop detected
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/iter_over_hash_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn main() {
let _ = x;
}

// shouldnt fire
// shouldn't fire
for x in &vec {
let _ = x;
}
Expand Down

0 comments on commit 436675b

Please sign in to comment.