about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-01-14 14:58:35 -0500
committerSteve Klabnik <steve@steveklabnik.com>2016-01-14 14:58:35 -0500
commit6ab39ff098fb7b3c04372380c059e144e5d88993 (patch)
tree9a9f2294cc2b6ff601f321c6b90165c71352dd1e
parent9ffb84a78455b45ddf7b77d85c11d7c1711ff2cb (diff)
parentdfdbbd005a017017c74b8fdd303593dedee40181 (diff)
downloadrust-6ab39ff098fb7b3c04372380c059e144e5d88993.tar.gz
rust-6ab39ff098fb7b3c04372380c059e144e5d88993.zip
Rollup merge of #30914 - tshepang:easier-description, r=steveklabnik
This function returns the size on the stack, not that of the value
that may be allocated on the heap.
-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
 ///