diff options
| author | mokou <mokou@fastmail.com> | 2022-07-12 15:18:05 +0200 |
|---|---|---|
| committer | mokou <mokou@fastmail.com> | 2022-07-12 15:18:05 +0200 |
| commit | 3c4c9c54c98142f114018bbbe4d0d96d63646a5b (patch) | |
| tree | 078f63daad5d9bfec1f526783aa2435a2596d8f2 | |
| parent | 2f7fd513041c7c6275552650881a79b9120aaacf (diff) | |
feat: remove collections to hashmaps
| -rw-r--r-- | exercises/hashmaps/README.md (renamed from exercises/collections/README.md) | 0 | ||||
| -rw-r--r-- | exercises/hashmaps/hashmaps1.rs (renamed from exercises/collections/hashmap1.rs) | 4 | ||||
| -rw-r--r-- | exercises/hashmaps/hashmaps2.rs (renamed from exercises/collections/hashmap2.rs) | 4 | ||||
| -rw-r--r-- | info.toml | 10 |
4 files changed, 9 insertions, 9 deletions
diff --git a/exercises/collections/README.md b/exercises/hashmaps/README.md index 30471cf..30471cf 100644 --- a/exercises/collections/README.md +++ b/exercises/hashmaps/README.md diff --git a/exercises/collections/hashmap1.rs b/exercises/hashmaps/hashmaps1.rs index 64b5a7f..26178b0 100644 --- a/exercises/collections/hashmap1.rs +++ b/exercises/hashmaps/hashmaps1.rs @@ -1,4 +1,4 @@ -// hashmap1.rs +// hashmaps1.rs // 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 @@ -8,7 +8,7 @@ // // Make me compile and pass the tests! // -// Execute the command `rustlings hint hashmap1` if you need +// Execute the command `rustlings hint hashmaps1` if you need // hints. // I AM NOT DONE diff --git a/exercises/collections/hashmap2.rs b/exercises/hashmaps/hashmaps2.rs index 0abe19a..1afb830 100644 --- a/exercises/collections/hashmap2.rs +++ b/exercises/hashmaps/hashmaps2.rs @@ -1,4 +1,4 @@ -// hashmap2.rs +// hashmaps2.rs // A basket of fruits in the form of a hash map is given. The key // represents the name of the fruit and the value represents how many @@ -9,7 +9,7 @@ // // Make me pass the tests! // -// Execute the command `rustlings hint hashmap2` if you need +// Execute the command `rustlings hint hashmaps2` if you need // hints. // I AM NOT DONE @@ -445,11 +445,11 @@ UNIX_EPOCH and SystemTime are declared in the std::time module. Add a use statem for these two to bring them into scope. You can use nested paths or the glob operator to bring these two in using only one line.""" -# COLLECTIONS +# HASHMAPS [[exercises]] -name = "hashmap1" -path = "exercises/collections/hashmap1.rs" +name = "hashmaps1" +path = "exercises/hashmaps/hashmaps1.rs" mode = "test" hint = """ Hint 1: Take a look at the return type of the function to figure out @@ -459,8 +459,8 @@ Hint 2: Number of fruits should be at least 5. And you have to put """ [[exercises]] -name = "hashmap2" -path = "exercises/collections/hashmap2.rs" +name = "hashmaps2" +path = "exercises/hashmaps/hashmaps2.rs" mode = "test" hint = """ Use the `entry()` and `or_insert()` methods of `HashMap` to achieve this. |
