Skip to content

Commit 9151599

Browse files
committed
Fix some minor issues in the guide.
1 parent c4a63fa commit 9151599

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/doc/guide.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Sound good? Let's go!
2727
# Installing Rust
2828

2929
The first step to using Rust is to install it! There are a number of ways to
30-
install Rust, but the easiest is to use the the `rustup` script. If you're on
30+
install Rust, but the easiest is to use the `rustup` script. If you're on
3131
Linux or a Mac, all you need to do is this (note that you don't need to type
3232
in the `$`s, they just indicate the start of each command):
3333

@@ -120,7 +120,7 @@ to make a projects directory in my home directory, and keep all my projects
120120
there. Rust does not care where your code lives.
121121

122122
This actually leads to one other concern we should address: this tutorial will
123-
assume that you have basic familiarity with the command-line. Rust does not
123+
assume that you have basic familiarity with the command line. Rust does not
124124
require that you know a whole ton about the command line, but until the
125125
language is in a more finished state, IDE support is spotty. Rust makes no
126126
specific demands on your editing tooling, or where your code lives.
@@ -452,7 +452,7 @@ what you need, so it's not verboten.
452452

453453
Let's get back to bindings. Rust variable bindings have one more aspect that
454454
differs from other languages: bindings are required to be initialized with a
455-
value before you're allowed to use it. If we try...
455+
value before you're allowed to use them. If we try...
456456

457457
```{ignore}
458458
let x;
@@ -2090,7 +2090,7 @@ In this case, I happen to prefer the latter, and in the `random()` case, I prefe
20902090
the former. I think the nested `<>`s make the first option especially ugly and
20912091
a bit harder to read.
20922092

2093-
Anyway, with us now convering our input to a number, our code looks like this:
2093+
Anyway, with us now converting our input to a number, our code looks like this:
20942094

20952095
```{rust,ignore}
20962096
use std::io;
@@ -2281,7 +2281,7 @@ change that by adding loops!
22812281

22822282
## Looping
22832283

2284-
As we already discussed, the `loop` key word gives us an infinite loop. So
2284+
As we already discussed, the `loop` keyword gives us an infinite loop. So
22852285
let's add that in:
22862286

22872287
```{rust,no_run}
@@ -4099,7 +4099,7 @@ fn inverse(x: f64) -> Result<f64, String> {
40994099
```
41004100

41014101
We don't want to take the inverse of zero, so we check to make sure that we
4102-
weren't passed one. If we weren't, then we return an `Err`, with a message. If
4102+
weren't passed zero. If we were, then we return an `Err`, with a message. If
41034103
it's okay, we return an `Ok`, with the answer.
41044104

41054105
Why does this matter? Well, remember how `match` does exhaustive matches?

0 commit comments

Comments
 (0)