Skip to content

Commit

Permalink
Merge pull request rust-lang#1192 from aaarkid/patch-1
Browse files Browse the repository at this point in the history
fix: Add a deref in the test code
  • Loading branch information
shadows-withal authored Oct 18, 2022
2 parents 53b8715 + 34ed235 commit 49a101b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/conversions/as_ref_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ mod tests {
#[test]
fn mult_box() {
let mut num: Box<u32> = Box::new(3);
num_sq(&mut num);
num_sq(&mut *num);
assert_eq!(*num, 9);
}
}

0 comments on commit 49a101b

Please sign in to comment.