Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/std/box.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ fn main() {
mem::size_of_val(&rectangle));

// box size == pointer size
println!("Boxed point occupies {} bytes on the stack",
println!("Boxed point occupies {} bytes on the heap",
mem::size_of_val(&boxed_point));
println!("Boxed rectangle occupies {} bytes on the stack",
println!("Boxed rectangle occupies {} bytes on the heap",
mem::size_of_val(&boxed_rectangle));
println!("Boxed box occupies {} bytes on the stack",
println!("Boxed box occupies {} bytes on the heap",
mem::size_of_val(&box_in_a_box));

// Copy the data contained in `boxed_point` into `unboxed_point`
Expand Down