Skip to content

Commit 053d58e

Browse files
Update pointers.md
1 parent 123a754 commit 053d58e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/trpl/pointers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ fn add(x: &i32, y: &i32) -> i32 {
568568
fn main() {
569569
let x = Box::new(5);
570570
571-
println!("{}", add(&x, &x));
572-
println!("{}", add(&x, &x));
571+
println!("{}", add(&*x, &*x));
572+
println!("{}", add(&*x, &*x));
573573
}
574574
```
575575

0 commit comments

Comments
 (0)