mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Rollup merge of #27535 - steveklabnik:for_jhun, r=alexcrichton
'work' can refer to the game itself, ie, 'this compiles but the game isn't finished,' so 'compile' is a more clear way to describe the problem. Thanks jhun on irc
This commit is contained in:
commit
3a2af87363
@ -533,7 +533,7 @@ Great! Next up: let’s compare our guess to the secret guess.
|
||||
# Comparing guesses
|
||||
|
||||
Now that we’ve got user input, let’s compare our guess to the random guess.
|
||||
Here’s our next step, though it doesn’t quite work yet:
|
||||
Here’s our next step, though it doesn’t quite compile yet:
|
||||
|
||||
```rust,ignore
|
||||
extern crate rand;
|
||||
@ -617,7 +617,7 @@ match guess.cmp(&secret_number) {
|
||||
If it’s `Less`, we print `Too small!`, if it’s `Greater`, `Too big!`, and if
|
||||
`Equal`, `You win!`. `match` is really useful, and is used often in Rust.
|
||||
|
||||
I did mention that this won’t quite work yet, though. Let’s try it:
|
||||
I did mention that this won’t quite compile yet, though. Let’s try it:
|
||||
|
||||
```bash
|
||||
$ cargo build
|
||||
|
Loading…
Reference in New Issue
Block a user