From 5e23bee61ecde751b6f0a1304e5003644f82d79c Mon Sep 17 00:00:00 2001 From: Vincent Ging Ho Yim Date: Wed, 23 Oct 2024 18:46:05 +1100 Subject: [PATCH] exercises 02_basic_calculator/04_panics: fix comma splice in panic message --- exercises/02_basic_calculator/04_panics/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/02_basic_calculator/04_panics/src/lib.rs b/exercises/02_basic_calculator/04_panics/src/lib.rs index 341a5ef..702b7bd 100644 --- a/exercises/02_basic_calculator/04_panics/src/lib.rs +++ b/exercises/02_basic_calculator/04_panics/src/lib.rs @@ -19,7 +19,7 @@ mod tests { // 👇 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`. // 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() { speed(0, 10, 0); }