mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 07:20:30 +00:00
Merge pull request #1273 from craymel/fix-structs3-hint
fix: Update structs3 hint
This commit is contained in:
commit
cea60a2eb9
1 changed files with 1 additions and 3 deletions
|
@ -386,11 +386,9 @@ name = "structs3"
|
|||
path = "exercises/structs/structs3.rs"
|
||||
mode = "test"
|
||||
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 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"""
|
||||
|
||||
|
|
Loading…
Reference in a new issue