From dfdbbd005a017017c74b8fdd303593dedee40181 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 14 Jan 2016 21:37:43 +0200 Subject: [PATCH] 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. --- src/libcore/mem.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -> usize { unsafe { intrinsics::size_of::() } } -/// Returns the size of the type that `val` points to in bytes. +/// Returns the size of the given value in bytes. /// /// # Examples ///