Aeledfyr / deepsize

A rust crate to find the total size of an object, on the stack and on the heap
MIT License
103 stars 19 forks source link

Explain magic number 17 #3

Closed dtolnay closed 5 years ago

dtolnay commented 5 years ago

https://github.com/Aeledfyr/deepsize/blob/8c872164c27927ab06a74bf7cabd639fbe118f6d/src/lib.rs#L23

In the rustdoc example it would be worth breaking down why 17 is the correct answer as a way to explain what this crate does.

@Aeledfyr