From 5116a812fbcdf8662934ef35e5d6d0d0794a5d47 Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 22 Jul 2024 12:02:59 +0200 Subject: tests3: Fix panic message --- solutions/17_tests/tests3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solutions/17_tests/tests3.rs') diff --git a/solutions/17_tests/tests3.rs b/solutions/17_tests/tests3.rs index 503f9bc..487fdc6 100644 --- a/solutions/17_tests/tests3.rs +++ b/solutions/17_tests/tests3.rs @@ -9,7 +9,7 @@ impl Rectangle { if width <= 0 || height <= 0 { // Returning a `Result` would be better here. But we want to learn // how to test functions that can panic. - panic!("Rectangle width and height can't be negative"); + panic!("Rectangle width and height must be positive"); } Rectangle { width, height } -- cgit v1.2.3