Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 1.6/ja/book/guessing-game.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ fn main() {
<!-- does the equivalent of a `use rand;` as well, so we can make use of anything -->
<!-- in the `rand` crate by prefixing it with `rand::`. -->
まず最初に変更したのは最初の行です。 `extern crate rand` となっています。
`rand` を `[dependencies]` に宣言したので、 `extern crate` でそれを使うことをRustに伝えれます
`rand` を `[dependencies]` に宣言したので、 `extern crate` でそれを使うことをRustに伝えています
これはまた、 `use rand;` とするのと同じこともしますので、 `rand` にあるものは `rand::` と前置すれば使えるようになります。

<!-- Next, we added another `use` line: `use rand::Rng`. We’re going to use a -->
Expand Down