mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 10:35:22 +00:00
Auto merge of #7993 - homersimpsons:patch-1, r=flip1995
`no_std_swap`: Fix typo in TODO changelog: none
This commit is contained in:
commit
ecf931f5ac
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user