Skip to content

Commit 1a0d0d5

Browse files
authored
Merge pull request #699 from lzutao/fix-layout-table
Fix layout table rendering
2 parents 0757a2d + 628dea4 commit 1a0d0d5

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/type-layout.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ alignment of the type respectively.
3434

3535
The size of most primitives is given in this table.
3636

37-
Type | `size_of::<Type>()`
38-
- | - | -
39-
bool | 1
40-
u8 | 1
41-
u16 | 2
42-
u32 | 4
43-
u64 | 8
44-
u128 | 16
45-
i8 | 1
46-
i16 | 2
47-
i32 | 4
48-
i64 | 8
49-
i128 | 16
50-
f32 | 4
51-
f64 | 8
52-
char | 4
37+
|Type | `size_of::<Type>()`|
38+
|-- |-- |
39+
|bool | 1 |
40+
|u8 | 1 |
41+
|u16 | 2 |
42+
|u32 | 4 |
43+
|u64 | 8 |
44+
|u128 | 16 |
45+
|i8 | 1 |
46+
|i16 | 2 |
47+
|i32 | 4 |
48+
|i64 | 8 |
49+
|i128 | 16 |
50+
|f32 | 4 |
51+
|f64 | 8 |
52+
|char | 4 |
5353

5454
`usize` and `isize` have a size big enough to contain every address on the
5555
target platform. For example, on a 32 bit target, this is 4 bytes and on a 64

0 commit comments

Comments
 (0)