Auto merge of #7993 - homersimpsons:patch-1, r=flip1995

`no_std_swap`: Fix typo in TODO

changelog: none
This commit is contained in:
bors 2021-12-01 09:44:24 +00:00
commit ecf931f5ac
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -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;