Merge pull request #1273 from craymel/fix-structs3-hint

fix: Update structs3 hint
This commit is contained in:
liv 2022-11-19 00:35:08 +01:00 committed by GitHub
commit cea60a2eb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -386,11 +386,9 @@ name = "structs3"
path = "exercises/structs/structs3.rs" path = "exercises/structs/structs3.rs"
mode = "test" mode = "test"
hint = """ hint = """
The new method needs to panic if the weight is physically impossible :), how do we do that in Rust?
For is_international: What makes a package international? Seems related to the places it goes through right? For is_international: What makes a package international? Seems related to the places it goes through right?
For calculate_transport_fees: Bigger is more expensive usually, we don't have size, but something may fit the bill here :) For get_fees: This method takes an additional argument, is there a field in the Package struct that this relates to?
Have a look in The Book, to find out more about method implementations: https://doc.rust-lang.org/book/ch05-03-method-syntax.html""" Have a look in The Book, to find out more about method implementations: https://doc.rust-lang.org/book/ch05-03-method-syntax.html"""