mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-09-26 02:30:48 +02:00
Merge 8c3b8dcec4
into 71053101c3
This commit is contained in:
commit
7f374ae193
@ -1,7 +1,7 @@
|
||||
// structs3.rs
|
||||
//
|
||||
// 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.
|
||||
// defined the Package struct, and we want to test some logic attached to it.
|
||||
// Make the code compile and the tests pass!
|
||||
//
|
||||
// Execute `rustlings hint structs3` or use the `hint` watch subcommand for a
|
||||
|
@ -3,7 +3,7 @@
|
||||
// A basket of fruits in the form of a hash map needs to be defined. The key
|
||||
// represents the name of the fruit and the value represents how many of that
|
||||
// particular fruit is in the basket. You have to put at least three different
|
||||
// types of fruits (e.g apple, banana, mango) in the basket and the total count
|
||||
// types of fruits (e.g. apple, banana, mango) in the basket and the total count
|
||||
// of all the fruits should be at least five.
|
||||
//
|
||||
// Make me compile and pass the tests!
|
||||
|
Loading…
Reference in New Issue
Block a user