mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-06 10:03:30 +02:00
Remove unneeded pub
This commit is contained in:
@@ -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!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user