Skip to content

Commit 5e23bee

Browse files
committed
exercises 02_basic_calculator/04_panics: fix comma splice in panic message
1 parent bd17a59 commit 5e23bee

File tree

1 file changed

+1
-1
lines changed
  • exercises/02_basic_calculator/04_panics/src

1 file changed

+1
-1
lines changed

exercises/02_basic_calculator/04_panics/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod tests {
1919
// 👇 With the `#[should_panic]` annotation we can assert that we expect the code
2020
// under test to panic. We can also check the panic message by using `expected`.
2121
// This is all part of Rust's built-in test framework!
22-
#[should_panic(expected = "The journey took no time at all, that's impossible!")]
22+
#[should_panic(expected = "The journey took no time at all. That's impossible!")]
2323
fn by_zero() {
2424
speed(0, 10, 0);
2525
}

0 commit comments

Comments
 (0)