Skip to content

Commit 126e5af

Browse files
Fixed markdown.
1 parent 0e3c192 commit 126e5af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/ownership.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ let v = vec![1, 2, 3];
121121
let v2 = v;
122122
```
123123

124-
The first line allocates memory for the vector object, 'v', and for the data it
124+
The first line allocates memory for the vector object, `v`, and for the data it
125125
contains. The vector object is stored on the [stack][sh] and contains a pointer
126126
to the content ([1, 2, 3]) stored on the [heap][sh]. When we move `v` to `v2`,
127127
it creates a copy of that pointer, for `v2`. Which means that there would be two

0 commit comments

Comments
 (0)