Skip to content

Commit

Permalink
Rollup merge of rust-lang#32339 - tclfs:patch-4, r=apasel422
Browse files Browse the repository at this point in the history
docs: make some tiny modification about spelling

I think it would be better after modification.
  • Loading branch information
steveklabnik committed Mar 21, 2016
2 parents 4ed70c2 + 2318e9f commit 0694d63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/doc/book/primitive-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ of these ones, as well, but these are the most primitive.

# Booleans

Rust has a built in boolean type, named `bool`. It has two values, `true` and `false`:
Rust has a built-in boolean type, named `bool`. It has two values, `true` and `false`:

```rust
let x = true;
Expand Down Expand Up @@ -89,13 +89,13 @@ Unsigned types use a `u` for their category, and signed types use `i`. The `i`
is for ‘integer’. So `u8` is an eight-bit unsigned number, and `i8` is an
eight-bit signed number.

## Fixed size types
## Fixed-size types

Fixed size types have a specific number of bits in their representation. Valid
Fixed-size types have a specific number of bits in their representation. Valid
bit sizes are `8`, `16`, `32`, and `64`. So, `u32` is an unsigned, 32-bit integer,
and `i64` is a signed, 64-bit integer.

## Variable sized types
## Variable-size types

Rust also provides types whose size depends on the size of a pointer of the
underlying machine. These types have ‘size’ as the category, and come in signed
Expand Down

0 comments on commit 0694d63

Please sign in to comment.