Skip to content

Commit 33a4f4e

Browse files
committed
Fix compiler error and clarify instructions
1 parent 4d04aad commit 33a4f4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/smart_pointers/cow1.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ mod tests {
6767
#[test]
6868
fn owned_mutation() -> Result<(), &'static str> {
6969
// Of course this is also the case if a mutation does occur. In this
70-
// case the call to `to_mut()` returns a reference to the same data as
71-
// before.
70+
// case the call to `to_mut()` in the abs_all() function returns a
71+
// reference to the same data as before.
7272
let slice = vec![-1, 0, 1];
73-
let mut input = Cow::from(slice).to_mut();
73+
let mut input = Cow::from(slice);
7474
match abs_all(&mut input) {
7575
// TODO
7676
}

0 commit comments

Comments
 (0)