Merge 90a3b68334
into a2f0401c4c
This commit is contained in:
commit
fb53a08389
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue