Skip to content

Commit

Permalink
Auto merge of rust-lang#7993 - homersimpsons:patch-1, r=flip1995
Browse files Browse the repository at this point in the history
`no_std_swap`: Fix typo in TODO

changelog: none
  • Loading branch information
bors committed Dec 1, 2021
2 parents abaffa7 + 522f3f9 commit ecf931f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/ui/crate_level_checks/no_std_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use core::panic::PanicInfo;

#[warn(clippy::all)]
fn main() {
// TODO: do somethjing with swap
let mut a = 42;
let mut b = 1337;

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/crate_level_checks/no_std_swap.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: this looks like you are trying to swap `a` and `b`
--> $DIR/no_std_swap.rs:13:5
--> $DIR/no_std_swap.rs:12:5
|
LL | / a = b;
LL | | b = a;
Expand Down

0 comments on commit ecf931f

Please sign in to comment.