mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 22:02:22 -05:00
fix: Update structs3 hint
This commit is contained in:
parent
97e3c419aa
commit
2ceb59a11d
1 changed files with 1 additions and 3 deletions
|
@ -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"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue