summaryrefslogtreecommitdiff
path: root/exercises/smart_pointers
AgeCommit message (Collapse)Author
2023-02-18refactor(arc1): improve readability by avoiding implicit dereferenceCyril MARPAUD
2023-02-14refactor(cow1): replace main with testsDaan Wynen
Following the discussion in #1195 this is the best I could come up with. The issue for me (and apparently a few other learners) was that the code needed to complete the exercise was not _missing_, but was rather there but wrong. In the end, what made the difference between this exercise and others (for me) was that in this exercise I was supposed to learn what to *expect* of an output. So I think it makes sense here to let the learner modify the tests and not the code itself. Fixes #1195 Signed-off-by: Daan Wynen <black.puppydog@gmx.de> # Conflicts: # info.toml
2023-01-23chore: fix prompt errorKevin Wan
Missed a blank line, which causes the prompt incorrect like below: ```rust You can keep working on this exercise, or jump into the next one by removing the `I AM NOT DONE` comment: 6 | // Make this code compile by using the proper Rc primitives to express that the sun has multiple owners. 7 | 8 | // I AM NOT DONE 9 | use std::rc::Rc; ```
2023-01-01fixed formattingseporterfield
2023-01-01gave smart_pointers its own README.mdseporterfield
2023-01-01moved rc to smart_pointersseporterfield
2023-01-01moved cow to smart_pointersseporterfield
2023-01-01moved box to smart_pointersseporterfield
2023-01-01move arc to smart_pointersseporterfield