summaryrefslogtreecommitdiff
path: root/rustlings-macros
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-06-28 21:24:35 +0200
committermo8it <mo8it@proton.me>2024-06-28 21:24:35 +0200
commit61c7eaed6251fb8a28b00ea97b22d1f1b778a72b (patch)
tree0dde17ffd725b4e69cba98d1acb493b57fce3c27 /rustlings-macros
parentf53d4589205a5485011a341400eeea0ec3d6b339 (diff)
box1 solution
Diffstat (limited to 'rustlings-macros')
-rw-r--r--rustlings-macros/info.toml15
1 files changed, 5 insertions, 10 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml
index 72f956b..744ad08 100644
--- a/rustlings-macros/info.toml
+++ b/rustlings-macros/info.toml
@@ -969,21 +969,16 @@ a different method that could make your code more compact than using `fold`."""
name = "box1"
dir = "19_smart_pointers"
hint = """
-Step 1:
-
-The compiler's message should help: since we cannot store the value of the
+The compiler's message should help: Since we cannot store the value of the
actual type when working with recursive types, we need to store a reference
(pointer) to its value.
-We should, therefore, place our `List` inside a `Box`. More details in the book
-here: https://doc.rust-lang.org/book/ch15-01-box.html#enabling-recursive-types-with-boxes
-
-Step 2:
+We should, therefore, place our `List` inside a `Box`. More details in The Book:
+https://doc.rust-lang.org/book/ch15-01-box.html#enabling-recursive-types-with-boxes
-Creating an empty list should be fairly straightforward (hint: peek at the
-assertions).
+Creating an empty list should be fairly straightforward (Hint: Read the tests).
-For a non-empty list keep in mind that we want to use our `Cons` "list builder".
+For a non-empty list, keep in mind that we want to use our `Cons` list builder.
Although the current list is one of integers (`i32`), feel free to change the
definition and try other types!"""