From 96d839984487c0759d8009e383fefe54865e6be2 Mon Sep 17 00:00:00 2001 From: parrrate Date: Fri, 12 Sep 2025 18:33:45 +0000 Subject: [PATCH] overview --- src/SUMMARY.md | 2 ++ src/exercises/multiple_blanket.md | 6 ++++++ src/overview.md | 32 +++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 src/overview.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index d6e08d3..eaa9f01 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -1,4 +1,6 @@ # Summary +[Overview](./overview.md) + - [Chapter 1](./chapter_1.md) - [`A`/`A1`/`A2`](./exercises/multiple_blanket.md) diff --git a/src/exercises/multiple_blanket.md b/src/exercises/multiple_blanket.md index bc601f0..7ac7000 100644 --- a/src/exercises/multiple_blanket.md +++ b/src/exercises/multiple_blanket.md @@ -1,3 +1,9 @@ +Make this compile. +- `A1` doesn't know about/depend on `A2` +- `A2` doesn't know about/depend on `A1` +- `A1` doesn't know about/depend on `A` +- `A2` doesn't know about/depend on `A` +- can't edit definitions of `A`, `test`, `tes1`, `test2`; can only add code outside of those items ```rust trait A { fn a_ref(&self) -> u64; diff --git a/src/overview.md b/src/overview.md new file mode 100644 index 0000000..61462ec --- /dev/null +++ b/src/overview.md @@ -0,0 +1,32 @@ +# Exercises + +Random Rust exercises. + +# Solutions + +Currently solutions are only provided in a non-human-readable form in the page source. +Those are mostly inteded for testing that the exercise is even possible to solve. +```rust +# /* +fn fix_me() { // Greyed out because the solution changes this line. +# */ +# fn fixed_name() { +} + +fn do_not_change_this() { + fixed_name() +} +``` +Some exercises may not include have the replaced parts greyed out: +```rust +# mod __ { +fn fix_me() { +# } +# mod } +# fn fixed_name() { +} + +fn do_not_change_this() { + fixed_name() +} +```