Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compile error if missing extern create rand; #1659

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 3 additions & 0 deletions src/ch02-00-guessing-game-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ Now that you’ve added the `rand` crate to *Cargo.toml*, let’s start using
<span class="filename">Filename: src/main.rs</span>

```rust,ignore
extern create rand;
use std::io;
use rand::Rng;

Expand Down Expand Up @@ -603,6 +604,7 @@ will explain.
<span class="filename">Filename: src/main.rs</span>

```rust,ignore,does_not_compile
extern create rand;
use std::io;
use std::cmp::Ordering;
use rand::Rng;
Expand Down Expand Up @@ -967,6 +969,7 @@ secret number. Listing 2-6 shows the final code.
<span class="filename">Filename: src/main.rs</span>

```rust,ignore
extern create rand;
use std::io;
use std::cmp::Ordering;
use rand::Rng;
Expand Down