summaryrefslogtreecommitdiff
path: root/exercises/move_semantics
AgeCommit message (Collapse)Author
2023-09-06Merge pull request #1641 from mo8it/move-semantics5-testliv
Convert exercises with assertions to tests
2023-09-04fix: refactor move semantics 1-4 into testsliv
2023-08-27Fix typomo8it
2023-08-27Make move_semantics5 a testmo8it
2023-06-12Merge branch 'main' into comment_cleanupliv
2023-06-12feat(move_semantics2): rewrite hintliv
2023-05-29docs: cleanup the explanation paragraphs at the start of each exercise.Robert Fry
2023-04-10Update move_semantics2.rsAaron Wang
2023-04-07docs: update line numbers in move_semantics2Aaron Wang
2023-02-18fix(move_semantics2): add expected output commentSebastian Törnquist
You can easily get this to compile with `vec0` being `[]` and `vec1` being `[22, 44, 66, 88]`
2022-07-12feat(move_semantics): finish updating commentsmokou
2022-07-12feat(move_semantics): clarify some hintsmokou
2022-07-11chore: remove mod.rs files and exercises featuremokou
2022-04-06fix(move_semantics2): Add commentragreenburg
2022-04-03fix(move_semantics) : add move_semantics6.rs to its modPascal Havé
2022-03-29feat: Add move_semantics6.rs exercise (#908)Lucas Aries
2022-03-29fix: Include exercises folder in the project structure behind a feature (#917)x-hgg-x
closes #859 closes #913 closes #942
2021-09-30fix(move_semantics5): correct typo (#857)Fredrik Enestad
2021-09-25fix(move_semantics5): change &mut *y to &mut x (#814)frogtd
Instead of having to explain why ```rs let mut x = 100; let y = &mut x; let mut z_owned = *y; let z = &mut z_owned; *y += 100; *z += 1000; ``` and ```rs let mut x = 100; let y = &mut x; let z = &mut *y; *y += 100; *z += 1000; ``` are different, you still get the point across about having only one mutable reference. As it stands, this exercise does too much (dereferencing and having only one mutable reference), and by doing so confuses people. Example of someone being confused by this: <https://discord.com/channels/273534239310479360/273541522815713281/872689531428692040>
2021-07-29fix(move_semantics5): Clarify instructionsana
2021-05-22fix: move_semantics5 hintsTaylor Yu
Improve the hints for move_semantics5, as well as the explanatory comments in the code. Previously, it was not clear what possible changes were allowed. It seems that reordering the statements might be the intended solution. The previous comment about not "adding newlines" doesn't make sense, so treating it as "adding new lines" makes it more clear.
2021-05-17feat: Add move_semantics5 exercise. (#746)Sateesh
* feat: Add move_semantics5 exercise. * feat: Add option3 exercise * Address review comments. Fix typos, sentence formatting. * Remove unwanted newline. * Address review comments: make comment inline, fix format in print.
2021-04-23docs(exercises): updated all exercises readme filesZerotask
all exercises readme files now have a unified structure and a description
2021-02-07fix(move_semantics4): Remove redundant "instead" (#640)Tal
2021-01-06fix(move_semantics4): Small readbility improvement (#617)Marius Ungureanu
* Small readbility improvement move_semantics4 doc * Remove `an` as it refers to the argument
2019-11-14fix: line numbers in several exercises and hintsRoberto Vidal
The introduction of `I AM NOT DONE` shifted the lines of all exercises, which now need adjustment.
2019-11-11Merge branch 'master' into refactor-hintsmarisa
2019-11-11feat: Refactor hint systemmarisa
Hints are now accessible using the CLI subcommand `rustlings hint <exercise name`. BREAKING CHANGE: This fundamentally changes the way people interact with exercises.
2019-11-11feat: improve `watch` execution modeRoberto Vidal
The `watch` command now requires user action to move to the next exercise. BREAKING CHANGE: this changes the behavior of `watch`.
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-11chore: Clean up some formatting in exercisesRussell Cousineau
2019-06-11chore: Fix a couple broken book linksRussell Cousineau
2019-04-22Add errors to exercises that compile without user changesYvan Sraka
2019-03-23Fix permissions on source fileszacanger
2019-01-23redo the section readmesliv
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