1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-10 11:10:26 +02:00
rustlings/exercises
Pete Pavlovski 72aaa15e6a
fix(hashmap2): Update incorrect assertion (#660)
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
2021-04-20 11:15:49 +02:00
..
clippy chore: add explanatory comment to clippy1 2020-04-21 18:50:00 +02:00
collections fix(hashmap2): Update incorrect assertion (#660) 2021-04-20 11:15:49 +02:00
conversions fix: use trait objects for from_str 2021-04-04 18:56:10 -05:00
enums chore: Removed extra whitespaces 2020-08-27 19:51:19 +02:00
error_handling chore: Removed extra whitespaces 2020-08-27 19:51:19 +02:00
functions fix(functions3): improve function argument type (#687) 2021-04-04 09:43:25 +02:00
generics chore: Removed extra whitespaces 2020-08-27 19:51:19 +02:00
if feat: Add if2 exercise 2020-05-02 13:02:16 -07:00
macros Make macros4 not compile by default 2020-08-26 22:17:03 -04:00
modules Merge branch 'master' into refactor-hints 2019-11-11 17:21:06 +01:00
move_semantics fix(move_semantics4): Remove redundant "instead" (#640) 2021-02-07 12:22:13 +01:00
option fix(option1): Don't add only zeros to the numbers array 2020-05-27 18:55:12 +10:00
primitive_types fix(primitive_types6): remove 'unused doc comment' warning 2020-10-13 23:20:17 -07:00
standard_library_types fix(iterators2): Update description (#578) 2020-11-07 13:54:14 +01:00
strings Merge branch 'master' into refactor-hints 2019-11-11 17:21:06 +01:00
structs chore: capitalize c letter 2021-03-20 21:12:49 +01:00
tests fix(quiz3): Second test is for odd numbers, not even. (#553) 2020-10-10 13:11:57 +02:00
threads fix(threads1): line number correction 2021-01-06 13:47:20 +01:00
traits chore: Removed extra whitespaces 2020-08-27 19:51:19 +02:00
variables fix(variables5) : make shadowing more prominent 2020-10-01 08:31:42 +05:30
quiz1.rs feat: renames test to quiz, fixes #244 2020-05-19 18:47:44 +02:00
quiz2.rs fix(exercises): adding question mark to quiz2 2020-08-25 16:38:41 +02:00
quiz3.rs fix(quiz3): Force an answer to Q2 (#672) 2021-03-16 10:14:25 +01:00
quiz4.rs feat: renames test to quiz, fixes #244 2020-05-19 18:47:44 +02:00
README.md fix: added missing exercises to info.toml 2020-12-12 10:34:59 -08:00

Exercise to Book Chapter mapping

Exercise Book Chapter
variables §3.1
functions §3.3
if §3.5
move_semantics §4.1
primitive_types §4.3
structs §5.1
enums §6
modules §7.2
collections §8.1
strings §8.2
error_handling §9
generics §10
option §10.1
traits §10.2
tests §11.1
standard_library_types §13.2
threads §16.1
macros §19.6
clippy n/a
conversions n/a