This commit is contained in:
Yang Wen 2021-05-28 22:56:27 +02:00 committed by GitHub
commit fb53a08389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ struct Package {
impl Package {
fn new(sender_country: String, recipient_country: String, weight_in_grams: i32) -> Package {
if weight_in_grams <= 0 {
// Something goes here...
// panic statement goes here...
} else {
return Package {
sender_country,