mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-11-16 19:50:44 +01:00
Merge pull request #188 from cenviity/push-usrtukunqysw
exercises 02_basic_calculator/04_panics: fix comma splice in panic message
This commit is contained in:
commit
04b89ff26e
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ mod tests {
|
||||||
// 👇 With the `#[should_panic]` annotation we can assert that we expect the code
|
// 👇 With the `#[should_panic]` annotation we can assert that we expect the code
|
||||||
// under test to panic. We can also check the panic message by using `expected`.
|
// under test to panic. We can also check the panic message by using `expected`.
|
||||||
// This is all part of Rust's built-in test framework!
|
// This is all part of Rust's built-in test framework!
|
||||||
#[should_panic(expected = "The journey took no time at all, that's impossible!")]
|
#[should_panic(expected = "The journey took no time at all. That's impossible!")]
|
||||||
fn by_zero() {
|
fn by_zero() {
|
||||||
speed(0, 10, 0);
|
speed(0, 10, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue