summaryrefslogtreecommitdiff
path: root/exercises/17_tests/tests4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/17_tests/tests4.rs')
-rw-r--r--exercises/17_tests/tests4.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/17_tests/tests4.rs b/exercises/17_tests/tests4.rs
index 35a9a3b..4303ed0 100644
--- a/exercises/17_tests/tests4.rs
+++ b/exercises/17_tests/tests4.rs
@@ -7,7 +7,7 @@ struct Rectangle {
impl Rectangle {
// Only change the test functions themselves
- pub fn new(width: i32, height: i32) -> Self {
+ fn new(width: i32, height: i32) -> Self {
if width <= 0 || height <= 0 {
panic!("Rectangle width and height cannot be negative!")
}