We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82409c0 commit 5116a81Copy full SHA for 5116a81
exercises/17_tests/tests3.rs
@@ -9,7 +9,7 @@ impl Rectangle {
9
if width <= 0 || height <= 0 {
10
// Returning a `Result` would be better here. But we want to learn
11
// how to test functions that can panic.
12
- panic!("Rectangle width and height can't be negative");
+ panic!("Rectangle width and height must be positive");
13
}
14
15
Rectangle { width, height }
solutions/17_tests/tests3.rs
0 commit comments