720 Commits

Author SHA1 Message Date
Remo Senekowitsch
05d0b14a58
Add exercise traits6 practicing extension traits 2026-05-15 09:23:33 +02:00
Remo Senekowitsch
f3036315a0
Clarify order of elements
Co-authored-by: Mo Bitar <76752051+mo8it@users.noreply.github.com>
2026-05-14 23:31:11 +02:00
Remo Senekowitsch
97a723508c
Redesign vec1 to avoid confusing array literal
Learners were sometimes confused by the literal array. Their assumption
was that they are supposed to convert the array to a vector. Duplicating
the literal elements was not an intuitive solution.

This redesign avoids putting an identical array literal near the place
where learners are supposed to use the vec! macro.
2026-05-14 16:19:53 +02:00
Jane
ef99b5cb9e docs: update README after rebase 2026-05-13 19:57:17 +08:00
Jane
5b1edf5f4f Rename smart_pointers and conversions exercises with numeric prefix (Option A) 2026-05-13 19:36:32 +08:00
Jane
4338c58079 Rename smart_pointers and conversions exercises with numeric prefix
Update rustlings-macros/info.toml and dev/Cargo.toml accordingly
2026-05-13 19:36:32 +08:00
Mo Bitar
d9b63641e5
Merge pull request #2351 from dipan-ck/docs-add-string-links
docs: add str and String documentation links
2026-05-09 12:27:28 +02:00
Remo Senekowitsch
124708acd9
Use slice instead of array in iterator1
This avoids confusion between `.into_iter()` and `.iter()`. On a slice,
both methods do the same (correct) thing. Using `.into_iter()` will
result in a clippy warning about the slice not being consumed.
2026-05-03 14:56:32 +02:00
Remo Senekowitsch
346753b673
Make starting fireworks more fun :) 2026-04-13 18:58:53 +02:00
Remo Senekowitsch
7c1d8ebf49
Make users type method syntax themselves in structs3
closes #2286
2026-04-05 22:23:47 +02:00
Dipan Chakraborty
de695c46f3 docs: add str and String documentation links 2026-02-10 19:00:41 +05:30
Rod Elias
45f789114b
chore: minor improvements 2026-01-12 00:22:59 -03:00
mo8it
b5d440fdc3 Fix clippy3 2025-11-20 12:49:27 +01:00
Marlon
8753dd6b2e
Fixed typo in the exercieses README.md 2025-11-12 21:58:28 +01:00
Remo Senekowitsch
d8f4b06c91
Remove use of map in early vecs2 exercise
Students do not have the necessary knowledge at this point to understand
what's happening with the iterator combinators. This topic is covered
well by the dedicated exercises about iterators later.

closes #2102
2025-09-24 21:19:40 +02:00
mo8it
628ef55337 Fix Clippy chapter 2025-08-21 23:46:37 +02:00
Mo Bitar
6765a0b61a
Merge pull request #2255 from zeonzip/clarify_errors_4_return
Clarify how to find return type of error4
2025-08-21 23:46:14 +02:00
Mo Bitar
436c95f4cc
Merge pull request #2262 from aCactusOrSomething/main
Fix incorrect book chapter number
2025-08-21 23:36:03 +02:00
deafloo
4f9f0907c3 Add positive tests
This prevents solving the exercise without a real IntegerOverflow
2025-07-21 12:13:32 +02:00
Hud Miller
3a2fe2c394 Fix incorrect book chapter number 2025-07-18 13:02:56 -05:00
zeonzip
278edc0b96 Clarify how to find return type of error4 2025-06-13 12:24:09 +02:00
Mo Bitar
a99433c62d
Merge pull request #2215 from Rudxain/strim
test idempotence of `trim_me` in `strings3.rs`
2025-05-13 16:23:35 +02:00
mo8it
48bab77609 Apply Clippy lints 2025-05-12 20:31:13 +02:00
Rahmat Nazali Salimi
7b2d42b0f0
Change icecream to ice cream 2025-04-10 15:38:43 +07:00
mo8it
63d8986f2a Update links 2025-04-03 18:22:55 +02:00
Mo Bitar
78194b4441
Merge pull request #2224 from cassian-goode/patch-1
Fix typo - errors5.rs
2025-04-03 17:52:57 +02:00
Hunter Z
9978c17d5f
Update README.md
Update the URL while add more reference.
2025-03-31 12:58:06 +08:00
cassian-goode
3cc7e0377c
Fix typo - errors5.rs
Minor typo correction in exercise instructions
2025-03-25 09:24:49 -04:00
Ricardo Fernández Serrata
fcd77a83cc
test trim idempotence 2025-03-07 19:17:11 -04:00
Mo Bitar
ae444eb3da
Merge pull request #2213 from peterneave/main
Use consistent apostrophes in markdown files
2025-03-02 17:30:29 +01:00
Peter Neave
425c9821e0 Use consistent apostrophes in markdown files 2025-02-28 11:46:39 +11:00
mo8it
bde6f7470c Co-ordinates -> Coordinates 2024-12-28 16:46:24 +01:00
Joel Marcey
6e60f441e9
Fix argument comment in test of if2.rs 2024-12-13 10:44:21 -08:00
mo8it
38016cb2d6 clippy3: Make the intent more clear 2024-11-13 16:06:41 +01:00
Vincent Ging Ho Yim
6bec6f92c4 threads1: Fix typos in description 2024-10-22 16:53:23 +11:00
mo8it
0e090ae112 Add required type annotation 2024-10-17 14:49:07 +02:00
Polycarbohydrate
bf7d171915
Update from_str.rs 2024-10-05 16:05:35 -04:00
Samuel Tardieu
2653c3c4d4 Do not use .as_bytes().len() on strings 2024-09-22 10:49:55 +02:00
Mo
64b2f18d92
Merge pull request #2103 from senekor/senk/kvuzvzqqkskk
Remove redundant enum definition task
2024-09-16 12:56:28 +02:00
Remo Senekowitsch
b540c6df25 Make if2 less confusing
Some people would get stuck on this exercise, trying to understand the meaning
behind foo, fuzz, baz etc. Making the theme of the code make a little more sense
to humans should hopefully prevent people from getting confused by abstract and
non-sensical tests.
2024-09-14 10:03:52 +02:00
mo8it
0513660b05 Allow dead code for all exercises and solutions 2024-09-13 14:56:46 +02:00
Remo Senekowitsch
9a25309c1c Remove redundant enum definition task
The exercise enums2.rs already contains a task where an identical enum
has to be defined.
2024-09-11 16:57:12 +02:00
mo8it
423b50b068 Use match instead of comparison chain 2024-08-22 14:37:47 +02:00
mo8it
d141a73493 threads3: Improve the test 2024-08-20 13:35:07 +02:00
mo8it
ca5d5f0a49 Remove dot for copy-pasta 2024-08-17 15:45:02 +02:00
mo8it
69b4fd49fc Only take a u8 to avoid huge output 2024-08-17 14:59:00 +02:00
mo8it
36f315c344 Add "the" 2024-08-17 14:56:52 +02:00
mo8it
8016f5ca2d Remove unneeded comma 2024-08-17 14:55:58 +02:00
mo8it
8ef2ff1257 Remove "Hello and" 2024-08-17 14:54:13 +02:00
Mo
09c3ac02f8
Merge pull request #2062 from jimbo5922/jimbo5922-fix-hashmap3-struct-name
update struct name in hashmap3
2024-08-08 00:40:51 +02:00