Skip to content

Commit 20ce4e6

Browse files
committed
Rollup merge of rust-lang#23690 - wettowelreactor:patch-1, r=steveklabnik
2 parents d5568c0 + 053d58e commit 20ce4e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/trpl/pointers.md

Lines changed: 2 additions & 2 deletions
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)