Skip to content

Commit

Permalink
Merge pull request rust-lang#233 from Havvy/sizeof-bool
Browse files Browse the repository at this point in the history
Add size of bool
  • Loading branch information
matthewjasper authored Feb 3, 2018
2 parents 57f6442 + 85edb98 commit 52843c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/type-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ The size of most primitives is given in this table.

Type | `size_of::\<Type>()`
- | - | -
bool | 1
u8 | 1
u16 | 2
u32 | 4
Expand Down

0 comments on commit 52843c7

Please sign in to comment.