]> git.lizzy.rs Git - rust.git/commit
docs: Changed docs for `size_of` to describe size as a stride offset
authorTaylor Cramer <cramertj@cs.washington.edu>
Mon, 2 May 2016 06:30:12 +0000 (23:30 -0700)
committerTaylor Cramer <cramertj@cs.washington.edu>
Mon, 2 May 2016 06:38:01 +0000 (23:38 -0700)
commit38c88360510ac6d9c741d7cbc52608908fd21278
tree9e1da8a96c71a867f3078da290fba8c9c9ed5b85
parent855fb6192263a5c059325bb4b4e10b55e4e8ddbb
docs: Changed docs for `size_of` to describe size as a stride offset
Current description of `std::mem::size_of` is ambiguous, and the
`std::intrinsics::size_of` description incorrectly defines size
as the number of bytes necessary to exactly overwrite a value,
not including the padding between elements necessary in a vector
or structure.
src/libcore/intrinsics.rs
src/libcore/mem.rs