We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f8cc4b + 66b7c68 commit c540a7cCopy full SHA for c540a7c
src/std/box.md
@@ -62,11 +62,11 @@ fn main() {
62
mem::size_of_val(&rectangle));
63
64
// box size == pointer size
65
- println!("Boxed point occupies {} bytes on the stack",
+ println!("Boxed point occupies {} bytes on the heap",
66
mem::size_of_val(&boxed_point));
67
- println!("Boxed rectangle occupies {} bytes on the stack",
+ println!("Boxed rectangle occupies {} bytes on the heap",
68
mem::size_of_val(&boxed_rectangle));
69
- println!("Boxed box occupies {} bytes on the stack",
+ println!("Boxed box occupies {} bytes on the heap",
70
mem::size_of_val(&box_in_a_box));
71
72
// Copy the data contained in `boxed_point` into `unboxed_point`
0 commit comments