mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-24 00:01:29 +02:00
fix(test1): Swap assertion parameter order
`Expected` should come before `actual`, other wise it leads to confusing compiler messages, e.g.
```
note: expected type `()`
found type `{integer}`
```
This commit is contained in:
@@ -16,6 +16,6 @@ fn verify_test() {
|
||||
let price1 = calculate_price(55);
|
||||
let price2 = calculate_price(40);
|
||||
|
||||
assert_eq!(price1, 55);
|
||||
assert_eq!(price2, 80);
|
||||
assert_eq!(55, price1);
|
||||
assert_eq!(80, price2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user