Commit Graph

12 Commits (16936d95d13df800f06c7af22069b5daf0c672e4)

Author SHA1 Message Date
Robert Fry 7eef5d15ee
docs: cleanup the explanation paragraphs at the start of each exercise. 1 year ago
PiqqiDesigns c4627e7112 chore: clarified cow owned_no_mutation comments 1 year ago
Ali Afsharzadeh 382e16eb7e feat(docs): add markdown linter for exercises README.md files 2 years ago
Cyril MARPAUD 045d86aa42 refactor(arc1): improve readability by avoiding implicit dereference 2 years ago
Daan Wynen bbdc5c6039 refactor(cow1): replace main with tests
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
2 years ago
Kevin Wan 4771a7b9e7
chore: fix prompt error
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;
```
2 years ago
seporterfield 66eaaf7b6e
fixed formatting 2 years ago
seporterfield 3fad2a9c83
gave smart_pointers its own README.md 2 years ago
seporterfield a8fd315e09
moved rc to smart_pointers 2 years ago
seporterfield e8c4aab643
moved cow to smart_pointers 2 years ago
seporterfield c3bab88fda
moved box to smart_pointers 2 years ago
seporterfield 05592acf40
move arc to smart_pointers 2 years ago