diff options
| author | Oliver Schneider <github6541940@oli-obk.de> | 2015-05-23 19:03:19 +0200 |
|---|---|---|
| committer | Oliver Schneider <github6541940@oli-obk.de> | 2015-05-23 19:03:19 +0200 |
| commit | 962b132fe33e9227c1458cc56c4a0bd04ca9ea3e (patch) | |
| tree | e23fece5b9562f532d93e4c27262a49aea8657e3 | |
| parent | 0b70f27b64214fa79e680369aadcfe184ebf24a8 (diff) | |
| parent | 18dfa8098571137e4564da53cff80e96b4236796 (diff) | |
| download | rust-962b132fe33e9227c1458cc56c4a0bd04ca9ea3e.tar.gz rust-962b132fe33e9227c1458cc56c4a0bd04ca9ea3e.zip | |
Rollup merge of #25715 - nero-luci:patch-1, r=steveklabnik
I consider that this version has a better reading fluency, instead of having a period between clauses
| -rw-r--r-- | src/doc/trpl/guessing-game.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/guessing-game.md b/src/doc/trpl/guessing-game.md index 061ec90a0bb..41d4146c9ac 100644 --- a/src/doc/trpl/guessing-game.md +++ b/src/doc/trpl/guessing-game.md @@ -637,7 +637,7 @@ When we wrote `let guess = String::new()`, Rust was able to infer that `guess` should be a `String`, and so it doesn’t make us write out the type. And with our `secret_number`, there are a number of types which can have a value between one and a hundred: `i32`, a thirty-two-bit number, or `u32`, an -unsigned thirty-two-bit number, or `i64`, a sixty-four-bit number. Or others. +unsigned thirty-two-bit number, or `i64`, a sixty-four-bit number or others. So far, that hasn’t mattered, and so Rust defaults to an `i32`. However, here, Rust doesn’t know how to compare the `guess` and the `secret_number`. They need to be the same type. Ultimately, we want to convert the `String` we |
