Skip to content

Commit cb1b0dd

Browse files
committed
Fix doc example to accommodate overloaded-box.
1 parent 0d5bcb1 commit cb1b0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/pointers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ fn main() {
709709
one_hundred: 100,
710710
});
711711

712-
let y = box foo(x);
712+
let y: Box<BigStruct> = box foo(x);
713713
}
714714
```
715715

0 commit comments

Comments
 (0)