We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d04aad + 33a4f4e commit 9dc8f13Copy full SHA for 9dc8f13
exercises/smart_pointers/cow1.rs
@@ -67,10 +67,10 @@ mod tests {
67
#[test]
68
fn owned_mutation() -> Result<(), &'static str> {
69
// 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.
+ // case the call to `to_mut()` in the abs_all() function returns a
+ // reference to the same data as before.
72
let slice = vec![-1, 0, 1];
73
- let mut input = Cow::from(slice).to_mut();
+ let mut input = Cow::from(slice);
74
match abs_all(&mut input) {
75
// TODO
76
}
0 commit comments