about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2016-01-14 21:37:43 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2016-01-14 21:38:18 +0200
commitdfdbbd005a017017c74b8fdd303593dedee40181 (patch)
treeefe596388415c475bcffd76603ad7887a2bd4ab0 /src/libcore
parent02fbf31fb26e0b5eccf34cef8a5f8becef6f3ada (diff)
downloadrust-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.rs2
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
 ///