We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47a386d commit 1b301eeCopy full SHA for 1b301ee
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 heap",
+ println!("Boxed point occupies {} bytes on the stack",
66
mem::size_of_val(&boxed_point));
67
- println!("Boxed rectangle occupies {} bytes on the heap",
+ println!("Boxed rectangle occupies {} bytes on the stack",
68
mem::size_of_val(&boxed_rectangle));
69
- println!("Boxed box occupies {} bytes on the heap",
+ println!("Boxed box occupies {} bytes on the stack",
70
mem::size_of_val(&box_in_a_box));
71
72
// Copy the data contained in `boxed_point` into `unboxed_point`
0 commit comments