diff options
Diffstat (limited to 'exercises/structs/structs3.rs')
| -rw-r--r-- | exercises/structs/structs3.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/structs/structs3.rs b/exercises/structs/structs3.rs index e84f2eb..0b3615f 100644 --- a/exercises/structs/structs3.rs +++ b/exercises/structs/structs3.rs @@ -2,7 +2,7 @@ // Structs contain data, but can also have logic. In this exercise we have // defined the Package struct and we want to test some logic attached to it. // Make the code compile and the tests pass! -// If you have issues execute `rustlings hint structs3` +// Execute `rustlings hint structs3` or use the `hint` watch subcommand for a hint. // I AM NOT DONE @@ -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 { - // panic statement goes here... + panic!("Can not ship a weightless package.") } else { Package { sender_country, |
