summaryrefslogtreecommitdiff
path: root/exercises
AgeCommit message (Collapse)Author
2019-10-28Auto merge of #219 - vyaslav:master, r=fmokobors
Added exercise for struct update syntax Added one exercise for struct update syntax `struct2.rs`
2019-10-25fix(option1): Fix arguments passed to assert! macroNiklas Anderson
2019-10-21feat: Added exercise for struct update syntaxViacheslav Avramenko
2019-08-21fix(errorsn.rs) Update the deprecated syntax by adding dyn to trait ↵Damian S
objectscloses #211
2019-08-17fix(primitive_types4): Fail on a slice covering the wrong areaDylan Nugent
This commit converts primitive_types4 to a test and asserts that the slice given is equal to the expected slice. The intent of the primitive_types4 exercise appears to be to ensure the user understands inclusive and exclusive bounds as well as slice syntax. `rustlings` commands using `compile` do not verify that a specific println is reached and, in the case of `watch` and `verify` (but not `run`), they do not output the `println`s at all. This fix is semantically similar to #198. It does not take a stance on the correct way to handle this for all exercises; see #127. There are likely other exercises whose intent are masked by this issue.
2019-08-12chore: Correct typoEnrico Miccoli
2019-08-09chore(iterators2): Add exercise instructionsNiklas Anderson
2019-08-09fix(iterators2): Remove syntax resulting in misleading error messageNiklas Anderson
closes #199
2019-07-27docs: Fix wrong titleAndre Pratama
fix #200
2019-07-26fix(option1): Add test for prematurely passing exerciseNiklas Anderson
Fixes the bug referenced in #160, but does not address the larger feature work referenced by the issue.
2019-07-13fix(test1): Swap assertion parameter orderPete McFarlane
`Expected` should come before `actual`, other wise it leads to confusing compiler messages, e.g. ``` note: expected type `()` found type `{integer}` ```
2019-07-03feat(iterators2): adds iterators2 exercise including configJesse
2019-06-29fix(test1): renamed function name to snake caseJesse
closes #180
2019-06-23Auto merge of #172 - miller-time:fix-book-links, r=komaedabors
chore: Fix a couple broken book links While I was fixing these, I figured maybe it's good to just use a consistent URL for book links: https://doc.rust-lang.org/book/ Is there a plan for what to do with this old 1.4.0 example that doesn't exist in the current version of the book? Perhaps at least include a disclaimer when recommending that folks check it out? https://github.com/rust-lang/rustlings/blob/34e31232dfddde284a341c9609b33cd27d9d5724/exercises/threads/README.md#L1
2019-06-23Auto merge of #171 - miller-time:rustfmt-exercises, r=komaedabors
chore: Clean up some formatting in exercises I noticed some formatting that isn't consistent with the `rustfmt` style and tried my best to run it on the files in the exercises directory (which does fail for files that can't compile!), which just caught some minor whitespace things here and there. Note: also can't just apply `rustfmt` blindly because of the blank lines that lead to the hint comments
2019-06-20Auto merge of #179 - briankung:fix_irrefutable_let_pattern_structs1, r=komaedabors
Fixes the irrefutable let pattern warning in `structs1.rs` PR https://github.com/rust-lang/rustlings/pull/163 accidentally introduced an error using some versions of the Rust compiler where the compiler would (rightly!) complain about an irrefutable let pattern. I have no idea why this did not occur in all versions of the compiler, but here is a way around it.
2019-06-20Fixes the irrefutable let pattern warningBrian Kung
2019-06-11chore: Clean up some formatting in exercisesRussell Cousineau
2019-06-11chore: Fix a couple broken book linksRussell Cousineau
2019-06-11Auto merge of #170 - miller-time:rename-iterator-exercise, r=komaedabors
fix(iterators): Rename iterator3.rs fixes #155
2019-06-09chore: Fix link to Arc<T> in the bookRohan Prinja
2019-06-07fix(iterators): Rename iterator3.rsRussell Cousineau
2019-05-26Auto merge of #164 - HanKruiger:master, r=komaedabors
Fix broken link
2019-05-26fixed outdated linksgushroom
2019-05-26Fix broken linkHanKruiger
2019-05-25Adds a simple exercise for structuresBrian Kung
2019-05-23Auto merge of #162 - c-rustacean:rustfmt-and-ws-fixes, r=komaedabors
errorsn.rs: Separate also the hints from each other to avoid accidental viewing
2019-05-23errorsn.rs: Separate also the hints from each other to avoid accidental viewingEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22Auto merge of #161 - c-rustacean:rustfmt-and-ws-fixes, r=komaedabors
Rustfmt and ws fixes
2019-05-22rustfmt the exercisesEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22iterator3.rs: whitespace fixesEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22errorsn.rs: Separate hints from code, so hints are not accidentally seenEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-12Update errors1.rsJulien Bisconti
Add Result type signature as it is difficult for new comers to understand Generics and Error all at once
2019-04-22Add errors to exercises that compile without user changesYvan Sraka
2019-04-08Fix links by deleting book versionDiod FR
2019-03-23Fix permissions on source fileszacanger
2019-03-16errors2.rs: update link to Rust book.Kyle Isom
2019-02-15fix test command executionliv
seems like i forgot that you actually need to run executables created with `rustc --test`! this also reworks the "test1" exercise a bit closes #108
2019-01-29Renamed readme files properlyJean-Philippe Moresmau
2019-01-29Renamed readme files properlyJean-Philippe Moresmau
2019-01-23thematically refactor modules2liv
2019-01-23redo the section readmesliv
2019-01-23add tests; refactor exercise linksliv
2019-01-09add a testliv
2019-01-09remove the ex*.rs filesliv
2018-11-27Changed Rust Book versions in links to 2018delet0r
Forgot to add changes to last commit.
2018-11-26Created sub READMEs for CLI only versiondelet0r
Sub READMEs contain the relevant resources from the main README of the web version. All second edition Rust Book links were updated to the 2018 edition. Fixed to typos in main README.md.
2018-11-09right let's try this one againolivia