Skip to content

Commit

Permalink
auto merge of #14247 : Ryman/rust/minor_ptr_nit, r=alexcrichton
Browse files Browse the repository at this point in the history
Not too hot on the second change, welcome a better suggestion/wording.
  • Loading branch information
bors committed May 17, 2014
2 parents 8befaba + 6bfe361 commit 20b502b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() {
And now I get an error:

~~~ {.notrust}
error: mismatched types: expected `&int` but found `<VI0>` (expected &-ptr but found integral variable)
error: mismatched types: expected `&int` but found `<generic integer #0>` (expected &-ptr but found integral variable)
~~~

What gives? It needs a pointer! Therefore I have to use pointers!"
Expand Down Expand Up @@ -73,7 +73,7 @@ However.
Here are the use-cases for pointers. I've prefixed them with the name of the
pointer that satisfies that use-case:

1. Owned: ~Trait must be a pointer, because you don't know the size of the
1. Owned: `Box<Trait>` must be a pointer, because you don't know the size of the
object, so indirection is mandatory.
2. Owned: You need a recursive data structure. These can be infinite sized, so
indirection is mandatory.
Expand Down

0 comments on commit 20b502b

Please sign in to comment.