@@ -62,14 +62,14 @@ let y = 1.0; // y has type f64
62
62
Here’s a list of the different numeric types, with links to their documentation
63
63
in the standard library:
64
64
65
+ * [ i8] ( ../std/primitive.i8.html )
65
66
* [ i16] ( ../std/primitive.i16.html )
66
67
* [ i32] ( ../std/primitive.i32.html )
67
68
* [ i64] ( ../std/primitive.i64.html )
68
- * [ i8 ] ( ../std/primitive.i8 .html )
69
+ * [ u8 ] ( ../std/primitive.u8 .html )
69
70
* [ u16] ( ../std/primitive.u16.html )
70
71
* [ u32] ( ../std/primitive.u32.html )
71
72
* [ u64] ( ../std/primitive.u64.html )
72
- * [ u8] ( ../std/primitive.u8.html )
73
73
* [ isize] ( ../std/primitive.isize.html )
74
74
* [ usize] ( ../std/primitive.usize.html )
75
75
* [ f32] ( ../std/primitive.f32.html )
@@ -82,12 +82,12 @@ Let’s go over them by category:
82
82
Integer types come in two varieties: signed and unsigned. To understand the
83
83
difference, let’s consider a number with four bits of size. A signed, four-bit
84
84
number would let you store numbers from ` -8 ` to ` +7 ` . Signed numbers use
85
- ‘ two’s compliment representation’ . An unsigned four bit number, since it does
85
+ “ two’s compliment representation” . An unsigned four bit number, since it does
86
86
not need to store negatives, can store values from ` 0 ` to ` +15 ` .
87
87
88
88
Unsigned types use a ` u ` for their category, and signed types use ` i ` . The ` i `
89
89
is for ‘integer’. So ` u8 ` is an eight-bit unsigned number, and ` i8 ` is an
90
- eight-bit signed number.
90
+ eight-bit signed number.
91
91
92
92
## Fixed size types
93
93
@@ -103,7 +103,7 @@ and unsigned varieties. This makes for two types: `isize` and `usize`.
103
103
104
104
## Floating-point types
105
105
106
- Rust also two floating point types: ` f32 ` and ` f64 ` . These correspond to
106
+ Rust also has two floating point types: ` f32 ` and ` f64 ` . These correspond to
107
107
IEEE-754 single and double precision numbers.
108
108
109
109
# Arrays
@@ -241,8 +241,8 @@ println!("x is {}", x);
241
241
Remember [ before] [ let ] when I said the left-hand side of a ` let ` statement was more
242
242
powerful than just assigning a binding? Here we are. We can put a pattern on
243
243
the left-hand side of the ` let ` , and if it matches up to the right-hand side,
244
- we can assign multiple bindings at once. In this case, ` let ` " destructures,"
245
- or " breaks up," the tuple, and assigns the bits to three bindings.
244
+ we can assign multiple bindings at once. In this case, ` let ` “ destructures”
245
+ or “ breaks up” the tuple, and assigns the bits to three bindings.
246
246
247
247
[ let ] : variable-bindings.html
248
248
0 commit comments