mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-12 11:14:55 +02:00
Fix compiler error and clarify instructions
This commit is contained in:
parent
4d04aad890
commit
33a4f4e454
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user