From 90a3b68334c3456807063f114ccd7e32efb7a24b Mon Sep 17 00:00:00 2001 From: Yang Wen Date: Wed, 30 Dec 2020 11:25:40 +0800 Subject: [PATCH] Update structs3.rs as a totally newbie to Rust, I don't know panic statement from https://doc.rust-lang.org/book/ and rustlings in the beginning. After a hard searching of [should_panic], then I figure out panic statement. So it's helpful to tell the learner that write a panic statement here. --- exercises/structs/structs3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/structs/structs3.rs b/exercises/structs/structs3.rs index 06fcaf2..1429adc 100644 --- a/exercises/structs/structs3.rs +++ b/exercises/structs/structs3.rs @@ -15,7 +15,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,