mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 21:47:04 +00:00
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.
This commit is contained in:
parent
02fbf31fb2
commit
dfdbbd005a
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user