Skip to content

Commit 6bfe361

Browse files
committed
guide-pointers: minor nits
1 parent 5f4de71 commit 6bfe361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide-pointers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn main() {
3232
And now I get an error:
3333

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

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

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

0 commit comments

Comments
 (0)