summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2023-09-09 01:23:15 +0200
committerGitHub <noreply@github.com>2023-09-09 01:23:15 +0200
commit9dc8f139250ae98eff263609e8a30e650afecd54 (patch)
tree34ab57ad31c83551ed656d0e81f023561d466625 /exercises
parent4d04aad8902262d73d05b066ef0b8ffcd4fb634d (diff)
parent33a4f4e454031ea7b318c855625553b413b8afcd (diff)
Merge pull request #1668 from ob/ob/fix-bug
Fix compiler error and clarify instructions
Diffstat (limited to 'exercises')
-rw-r--r--exercises/smart_pointers/cow1.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/smart_pointers/cow1.rs b/exercises/smart_pointers/cow1.rs
index 5ab5115..fcd3e0b 100644
--- a/exercises/smart_pointers/cow1.rs
+++ b/exercises/smart_pointers/cow1.rs
@@ -67,10 +67,10 @@ mod tests {
#[test]
fn owned_mutation() -> Result<(), &'static str> {
// Of course this is also the case if a mutation does occur. In this
- // case the call to `to_mut()` returns a reference to the same data as
- // before.
+ // case the call to `to_mut()` in the abs_all() function returns a
+ // reference to the same data as before.
let slice = vec![-1, 0, 1];
- let mut input = Cow::from(slice).to_mut();
+ let mut input = Cow::from(slice);
match abs_all(&mut input) {
// TODO
}