mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 22:02:22 -05:00
Merge pull request #1668 from ob/ob/fix-bug
Fix compiler error and clarify instructions
This commit is contained in:
commit
9dc8f13925
1 changed files with 3 additions and 3 deletions
|
@ -67,10 +67,10 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn owned_mutation() -> Result<(), &'static str> {
|
fn owned_mutation() -> Result<(), &'static str> {
|
||||||
// Of course this is also the case if a mutation does occur. In this
|
// 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
|
// case the call to `to_mut()` in the abs_all() function returns a
|
||||||
// before.
|
// reference to the same data as before.
|
||||||
let slice = vec![-1, 0, 1];
|
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) {
|
match abs_all(&mut input) {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue