Skip to content

Commit d4ab49e

Browse files
committed
---
yaml --- r: 127671 b: refs/heads/snap-stage3 c: 9151599 h: refs/heads/master i: 127669: a389789 127667: 4b3e826 127663: 6a2702e v: v3
1 parent 24c11df commit d4ab49e

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 49a970f2449a78f28b6c301e542d38593094ca77
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e7a5e8ff3bafa6d4d5a517e399597666947a5e07
4+
refs/heads/snap-stage3: 9151599ec87e86b429e049b251a5470a29ea5948
55
refs/heads/try: d9c23fcbaea89871667272a67ecb8d3a512162f3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/doc/guide.md

Lines changed: 5 additions & 5 deletions
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;
@@ -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?

branches/snap-stage3/src/doc/tutorial.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,16 +1133,6 @@ let xs = Cons(1, box Cons(2, box Cons(3, box Nil)));
11331133
let ys = xs; // copies `Cons(u32, pointer)` shallowly
11341134
~~~
11351135

1136-
> *Note:* Names like `xs` and `ys` are a naming
1137-
> convention for collection-like data structures
1138-
> (like our `List`). These collections are given
1139-
> names appended with 's' to signify plurality,
1140-
> i.e. that the data structure stores multiple
1141-
> elements. For example, `xs` in this case can
1142-
> be read as "a list of ex-es", where "x" here
1143-
> are elements of type `u32`.
1144-
1145-
11461136
Rust will consider a shallow copy of a type with a destructor like `List` to
11471137
*move ownership* of the value. After a value has been moved, the source
11481138
location cannot be used unless it is reinitialized.

0 commit comments

Comments
 (0)