Skip to content

Commit c540a7c

Browse files
authored
Merge pull request #1564 from sras1599/patch-1
Update incorrect print output in std/box.md
2 parents 6f8cc4b + 66b7c68 commit c540a7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/std/box.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ fn main() {
6262
mem::size_of_val(&rectangle));
6363
6464
// box size == pointer size
65-
println!("Boxed point occupies {} bytes on the stack",
65+
println!("Boxed point occupies {} bytes on the heap",
6666
mem::size_of_val(&boxed_point));
67-
println!("Boxed rectangle occupies {} bytes on the stack",
67+
println!("Boxed rectangle occupies {} bytes on the heap",
6868
mem::size_of_val(&boxed_rectangle));
69-
println!("Boxed box occupies {} bytes on the stack",
69+
println!("Boxed box occupies {} bytes on the heap",
7070
mem::size_of_val(&box_in_a_box));
7171
7272
// Copy the data contained in `boxed_point` into `unboxed_point`

0 commit comments

Comments
 (0)