diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-01-14 21:37:43 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-01-14 21:38:18 +0200 |
| commit | dfdbbd005a017017c74b8fdd303593dedee40181 (patch) | |
| tree | efe596388415c475bcffd76603ad7887a2bd4ab0 /src/libcore | |
| parent | 02fbf31fb26e0b5eccf34cef8a5f8becef6f3ada (diff) | |
| download | rust-dfdbbd005a017017c74b8fdd303593dedee40181.tar.gz rust-dfdbbd005a017017c74b8fdd303593dedee40181.zip | |
doc: this is more easy to read, and less prone mis-interpretation
This function returns the size on the stack, not that of the value that may be allocated on the heap.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/mem.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index ee6e708ea32..fb6dac40798 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -130,7 +130,7 @@ pub fn size_of<T>() -> usize { unsafe { intrinsics::size_of::<T>() } } -/// Returns the size of the type that `val` points to in bytes. +/// Returns the size of the given value in bytes. /// /// # Examples /// |
