Skip to content

Commit b92501f

Browse files
chore: fix some comments
Signed-off-by: VitalikButerinEth <[email protected]>
1 parent da4b212 commit b92501f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/ui/double_neg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ fn main() {
55
-x;
66
-(-x);
77
--x;
8-
//~^ ERROR: `--x` could be misinterpreted as pre-decrement by C programmers, is usuall
8+
//~^ ERROR: `--x` could be misinterpreted as pre-decrement by C programmers, is usually
99
//~| NOTE: `-D clippy::double-neg` implied by `-D warnings`
1010
}

tests/ui/infinite_loops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn can_break_both_inner_and_outer(cond: bool) {
137137
}
138138

139139
fn break_wrong_loop(cond: bool) {
140-
// 'inner has statement to break 'outer loop, but it was breaked early by a labeled child loop
140+
// 'inner has statement to break 'outer loop, but it was broken out of early by a labeled child loop
141141
'outer: loop {
142142
loop {
143143
//~^ ERROR: infinite loop detected

tests/ui/iter_over_hash_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn main() {
5959
let _ = x;
6060
}
6161

62-
// shouldnt fire
62+
// shouldn't fire
6363
for x in &vec {
6464
let _ = x;
6565
}

0 commit comments

Comments
 (0)