diff options
| author | bstrie <ben.striegel@gmail.com> | 2018-06-08 19:20:28 +0000 |
|---|---|---|
| committer | bstrie <ben.striegel@gmail.com> | 2018-06-08 19:20:28 +0000 |
| commit | 9a8fa2cf92c4f1fb5ebed287bf6eab81f9d8a804 (patch) | |
| tree | 26e17302edaadd4b5077ca3ebf045f92ab81f20e /src/libcore | |
| parent | 1b4c921103ff4ae225f2d84a8b13f1616dcb538e (diff) | |
| download | rust-9a8fa2cf92c4f1fb5ebed287bf6eab81f9d8a804.tar.gz rust-9a8fa2cf92c4f1fb5ebed287bf6eab81f9d8a804.zip | |
Document size_of for 128-bit integers
We might want to consider separately documenting the alignment of primitives, rather than just their size, since 128-bit integers, unlike all other primitives, have an alignment that is not identical to their size (size_of is 16, align_of is 8)
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/mem.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 9fed4990345..31635ffa53c 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -194,10 +194,12 @@ pub fn forget<T>(t: T) { /// u16 | 2 /// u32 | 4 /// u64 | 8 +/// u128 | 16 /// i8 | 1 /// i16 | 2 /// i32 | 4 /// i64 | 8 +/// i128 | 16 /// f32 | 4 /// f64 | 8 /// char | 4 |
