Skip to content

Commit 2cc4d82

Browse files
committed
Fix small typos in documentation
1 parent dc630d0 commit 2cc4d82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/trpl/guessing-game.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ variety of numbers, we need to give Rust a hint as to the exact type of number
711711
we want. Hence, `let guess: u32`. The colon (`:`) after `guess` tells Rust
712712
we’re going to annotate its type. `u32` is an unsigned, thirty-two bit
713713
integer. Rust has [a number of built-in number types][number], but we’ve
714-
chosen `u32`. It’s a good default choice for a small positive numer.
714+
chosen `u32`. It’s a good default choice for a small positive number.
715715
716716
[parse]: ../std/primitive.str.html#method.parse
717717
[number]: primitive-types.html#numeric-types
@@ -920,7 +920,7 @@ failure. Each contains more information: the successful parsed integer, or an
920920
error type. In this case, we `match` on `Ok(num)`, which sets the inner value
921921
of the `Ok` to the name `num`, and then we just return it on the right-hand
922922
side. In the `Err` case, we don’t care what kind of error it is, so we just
923-
use `_` intead of a name. This ignores the error, and `continue` causes us
923+
use `_` instead of a name. This ignores the error, and `continue` causes us
924924
to go to the next iteration of the `loop`.
925925
926926
Now we should be good! Let’s try:

0 commit comments

Comments
 (0)