Skip to content

Commit d347d1f

Browse files
authored
Merge pull request #251 from MHMasoon/patch-1
match panic message with the test expected message
2 parents 486096e + 04c1f3b commit d347d1f

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
@@ -3,7 +3,7 @@
33
fn speed(start: u32, end: u32, time_elapsed: u32) -> u32 {
44
// TODO: Panic with a custom message if `time_elapsed` is 0
55
if time_elapsed == 0 {
6-
panic!("The journey took no time at all, that's impossible!");
6+
panic!("The journey took no time at all. That's impossible!");
77
}
88

99
(end - start) / time_elapsed

0 commit comments

Comments
 (0)