Rollup merge of #25195 - simonkern:master, r=steveklabnik

I deleted one unneccessary 'the' and added the href for [bindings]
This commit is contained in:
Manish Goregaokar 2015-05-09 00:37:43 +05:30
commit 4b4cb86248
3 changed files with 5 additions and 4 deletions

View File

@ -116,7 +116,7 @@ fn main() {
}
```
[struct]: structs.html
[structs]: structs.html
As you can see, `struct`s can also have lifetimes. In a similar way to functions,

View File

@ -3,7 +3,7 @@
This guide is one of three presenting Rusts ownership system. This is one of
Rusts most unique and compelling features, with which Rust developers should
become quite acquainted. Ownership is how Rust achieves its largest goal,
memory safety. The there are a few distinct concepts, each with its own
memory safety. There are a few distinct concepts, each with its own
chapter:
* ownership, which youre reading now.
@ -59,6 +59,7 @@ deterministically, at the end of the scope.
[vect]: ../std/vec/struct.Vec.html
[heap]: the-stack-and-the-heap.html
[bindings]: variable-bindings.html
# Move semantics
@ -122,7 +123,7 @@ let v2 = v;
The first line creates some data for the vector on the [stack][sh], `v`. The
vectors data, however, is stored on the [heap][sh], and so it contains a
pointer to that data. When we move `v` to `v2`, it creates a copy of that data,
pointer to that data. When we move `v` to `v2`, it creates a copy of that pointer,
for `v2`. Which would mean two pointers to the contents of the vector on the
heap. That would be a problem: it would violate Rusts safety guarantees by
introducing a data race. Therefore, Rust forbids using `v` after weve done the

View File

@ -3,7 +3,7 @@
This guide is one of three presenting Rusts ownership system. This is one of
Rusts most unique and compelling features, with which Rust developers should
become quite acquainted. Ownership is how Rust achieves its largest goal,
memory safety. The there are a few distinct concepts, each with its own
memory safety. There are a few distinct concepts, each with its own
chapter:
* [ownership][ownership], ownership, the key concept