Skip to content

Commit

Permalink
Add 128-bit ints to ch3
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Mar 18, 2018
1 parent 76fa546 commit 9ddb03a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions second-edition/src/ch03-02-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ value.

<span class="caption">Table 3-1: Integer Types in Rust</span>

| Length | Signed | Unsigned |
|--------|---------|----------|
| 8-bit | `i8` | `u8` |
| 16-bit | `i16` | `u16` |
| 32-bit | `i32` | `u32` |
| 64-bit | `i64` | `u64` |
| arch | `isize` | `usize` |
| Length | Signed | Unsigned |
|---------|---------|----------|
| 8-bit | `i8` | `u8` |
| 16-bit | `i16` | `u16` |
| 32-bit | `i32` | `u32` |
| 64-bit | `i64` | `u64` |
| 128-bit | `i128` | `u128` |
| arch | `isize` | `usize` |

Each variant can be either signed or unsigned and has an explicit size.
*Signed* and *unsigned* refer to whether it’s possible for the number to be
Expand Down

0 comments on commit 9ddb03a

Please sign in to comment.