about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTang Chenglong <ideami@outlook.com>2016-03-18 23:29:12 +0800
committerTang Chenglong <ideami@outlook.com>2016-03-18 23:29:12 +0800
commit2318e9fbe2caf7c2cc7bf63cf4ea244d274ba16b (patch)
tree2e839db09fb5f55922e56f95ac4274fa0e56b0b8 /src
parent2de6ddd75e202acdedfcd05b51a863dcc10459ca (diff)
downloadrust-2318e9fbe2caf7c2cc7bf63cf4ea244d274ba16b.tar.gz
rust-2318e9fbe2caf7c2cc7bf63cf4ea244d274ba16b.zip
docs: Make some tiny modification about spelling
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/primitive-types.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/book/primitive-types.md b/src/doc/book/primitive-types.md
index 840609d1dd6..8dfbf4ada76 100644
--- a/src/doc/book/primitive-types.md
+++ b/src/doc/book/primitive-types.md
@@ -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;
@@ -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