summaryrefslogtreecommitdiff
path: root/rustlings-macros/info.toml
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-06-27 11:30:42 +0200
committermo8it <mo8it@proton.me>2024-06-27 11:30:42 +0200
commit92f249a52ca993d65db6ed70b85535c2f1720ec3 (patch)
treefa3d6174d0d54679fa8218efeb9dda079c831c28 /rustlings-macros/info.toml
parent789223cc9e247eb9da90698b1c3011c26cdc863c (diff)
parente6228e92b4df766bddb8524ed42d66690348f100 (diff)
Merge branch 'main'
Diffstat (limited to 'rustlings-macros/info.toml')
-rw-r--r--rustlings-macros/info.toml8
1 files changed, 4 insertions, 4 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml
index 11d6d59..2cc1db6 100644
--- a/rustlings-macros/info.toml
+++ b/rustlings-macros/info.toml
@@ -336,7 +336,7 @@ What do you think is the more commonly used pattern under Rust developers?
name = "move_semantics1"
dir = "06_move_semantics"
hint = """
-So you've got the "cannot borrow immutable local variable `vec` as mutable"
+So you've got the "cannot borrow `vec` as mutable, as it is not declared as mutable"
error on the line where we push an element to the vector, right?
The fix for this is going to be adding one keyword, and the addition is NOT on
@@ -372,7 +372,7 @@ name = "move_semantics4"
dir = "06_move_semantics"
hint = """
Carefully reason about the range in which each mutable reference is in
-scope. Does it help to update the value of referent (`x`) immediately after
+scope. Does it help to update the value of `x` immediately after
the mutable reference is taken?
Read more about 'Mutable References' in the book's section 'References and Borrowing':
https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html#mutable-references.
@@ -787,7 +787,7 @@ name = "traits4"
dir = "15_traits"
hint = """
Instead of using concrete types as parameters you can use traits. Try replacing
-the '??' with 'impl <what goes here?>'
+the '??' with 'impl [what goes here?]'
See the documentation at: https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
"""
@@ -798,7 +798,7 @@ dir = "15_traits"
test = false
hint = """
To ensure a parameter implements multiple traits use the '+ syntax'. Try
-replacing the '??' with 'impl <> + <>'.
+replacing the '??' with 'impl [what goes here?] + [what goes here?]'.
See the documentation at: https://doc.rust-lang.org/book/ch10-02-traits.html#specifying-multiple-trait-bounds-with-the--syntax
"""