Skip to content

Commit

Permalink
We used u32 in chapter 2, not i32
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Sep 16, 2017
1 parent 764391a commit f4bce88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions second-edition/src/ch03-02-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ work in Rust.
#### Integer Types

An *integer* is a number without a fractional component. We used one integer
type earlier in this chapter, the `i32` type. This type declaration indicates
that the value it’s associated with should be a signed integer (hence the `i`,
as opposed to a `u` for unsigned) that takes up 32 bits of space. Table 3-1
shows the built-in integer types in Rust. Each variant in the Signed and
Unsigned columns (for example, *i32*) can be used to declare the type of an
integer value.
type earlier in this chapter, the `u32` type. This type declaration indicates
that the value it’s associated with should be an unsigned signed integer
(signed integer types start with `i` instead of `u`) that takes up 32 bits of
space. Table 3-1 shows the built-in integer types in Rust. Each variant in the
Signed and Unsigned columns (for example, *i8*) can be used to declare the type
of an integer value.

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

Expand Down

0 comments on commit f4bce88

Please sign in to comment.