Skip to content

Commit ddd3041

Browse files
Merge pull request #353 from ykomatsu/ykomatsu
Fix trivial issues
2 parents 2e2e1a1 + d05b7c6 commit ddd3041

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/ch03-02-data-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ the scope of this book).
7878

7979
Each signed variant can store numbers from -(2<sup>n - 1</sup>) to 2<sup>n -
8080
1</sup> - 1 inclusive, where `n` is the number of bits that variant uses. So an
81-
`i8` can store numbers from -(2<sup>7</sup>) to 2<sup>7</sup>, which equals
81+
`i8` can store numbers from -(2<sup>7</sup>) to 2<sup>7</sup> - 1, which equals
8282
-128 to 127. Unsigned variants can store numbers from 0 to 2<sup>n</sup> - 1,
8383
so a `u8` can store numbers from 0 to 2<sup>8</sup> - 1, which equals 0 to 255.
8484

src/ch03-05-control-flow.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ condition. In this case, the condition checks whether or not the variable
3535
condition is true is placed immediately after the condition inside curly
3636
braces. Blocks of code associated with the conditions in `if` expressions are
3737
sometimes called *arms*, just like the arms in `match` expressions that we
38-
discussed in the “Comparing the Guess to the Secret Number” section of Chapter
39-
2. Optionally, we can also include an `else` expression, which we chose to do
40-
here, to give the program an alternative block of code to execute should the
41-
condition evaluate to false. If you don’t provide an `else` expression and the
42-
condition is false, the program will just skip the `if` block and move on to
43-
the next bit of code.
38+
discussed in the “Comparing the Guess to the Secret Number” section of
39+
Chapter 2. Optionally, we can also include an `else` expression, which we chose
40+
to do here, to give the program an alternative block of code to execute should
41+
the condition evaluate to false. If you don’t provide an `else` expression and
42+
the condition is false, the program will just skip the `if` block and move on
43+
to the next bit of code.
4444

4545
Try running this code; you should see the following output:
4646

0 commit comments

Comments
 (0)