Skip to content

Commit 6ab39ff

Browse files
committed
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.
2 parents 9ffb84a + dfdbbd0 commit 6ab39ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/mem.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub fn size_of<T>() -> usize {
130130
unsafe { intrinsics::size_of::<T>() }
131131
}
132132

133-
/// Returns the size of the type that `val` points to in bytes.
133+
/// Returns the size of the given value in bytes.
134134
///
135135
/// # Examples
136136
///

0 commit comments

Comments
 (0)