Skip to content

Commit dfdbbd0

Browse files
committed
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.
1 parent 02fbf31 commit dfdbbd0

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)