mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
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
|
||||
/// platforms.
|
||||
/// ```
|
||||
/// use std::alloc::Layout;
|
||||
/// assert_eq!(Layout::new::<char>(), Layout::new::<u32>());
|
||||
/// ```
|
||||
///
|
||||
/// [Unicode code point]: https://www.unicode.org/glossary/#code_point
|
||||
/// [Unicode scalar value]: https://www.unicode.org/glossary/#unicode_scalar_value
|
||||
|
Loading…
Reference in New Issue
Block a user