Update library/core/src/primitive_docs.rs
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
This commit is contained in:
parent
3fea7cc7da
commit
c278bc1f81
@ -332,6 +332,10 @@ mod prim_never {}
|
|||||||
///
|
///
|
||||||
/// `char` is guaranteed to have the same size and alignment as `u32` on all
|
/// `char` is guaranteed to have the same size and alignment as `u32` on all
|
||||||
/// platforms.
|
/// platforms.
|
||||||
|
/// ```
|
||||||
|
/// use std::alloc::Layout;
|
||||||
|
/// assert_eq!(Layout::new::<char>(), Layout::new::<u32>());
|
||||||
|
/// ```
|
||||||
///
|
///
|
||||||
/// [Unicode code point]: https://www.unicode.org/glossary/#code_point
|
/// [Unicode code point]: https://www.unicode.org/glossary/#code_point
|
||||||
/// [Unicode scalar value]: https://www.unicode.org/glossary/#unicode_scalar_value
|
/// [Unicode scalar value]: https://www.unicode.org/glossary/#unicode_scalar_value
|
||||||
|
Loading…
Reference in New Issue
Block a user