未验证 提交 d7c833b7 编写于 作者: P Pietro Albini 提交者: GitHub

Rollup merge of #55507 - fhartwig:size_of_intrinsic_docs, r=frewsxcv

Add link to std::mem::size_of to size_of intrinsic documentation

The other intrinsics with safe/stable alternatives already have documentation to this effect.
......@@ -672,6 +672,9 @@
///
/// More specifically, this is the offset in bytes between successive
/// items of the same type, including alignment padding.
///
/// The stabilized version of this intrinsic is
/// [`std::mem::size_of`](../../std/mem/fn.size_of.html).
pub fn size_of<T>() -> usize;
/// Moves a value to an uninitialized memory location.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册