Skip to content

Commit e707293

Browse files
committed
fix typo on ch02
1 parent 2a76e92 commit e707293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch02-00-guessing-game-tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ Let’s start using `rand` to generate a number to guess. The next step is to
948948
update *src/main.rs*, as shown in Listing 2-3.
949949
-->
950950

951-
`rang`クレートを使って予想する数字を生成しましょう。
951+
`rand`クレートを使って予想する数字を生成しましょう。
952952
次のステップは*src/main.rs*ファイルをリスト2-3のように更新することです。
953953

954954
<!--
@@ -974,7 +974,7 @@ random number generators implement, and this trait must be in scope for us to
974974
use those methods. Chapter 10 will cover traits in detail.
975975
-->
976976

977-
まず`use rand::Ring`という行を追加します。
977+
まず`use rand::Rng`という行を追加します。
978978
`Rng`トレイトは乱数生成器が実装すべきメソッドを定義しており、それらのメソッドを使用するには、このトレイトがスコープ内になければなりません。
979979
トレイトについて詳しくは第10章で解説します。
980980

0 commit comments

Comments
 (0)