We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37a952a commit 1536195Copy full SHA for 1536195
src/doc/book/ownership.md
@@ -139,7 +139,7 @@ Now consider the following code fragment:
139
```rust
140
let v = vec![1, 2, 3];
141
142
-let v2 = v;
+let mut v2 = v;
143
```
144
145
The first line allocates memory for the vector object `v` on the stack like
@@ -167,7 +167,7 @@ For example if we truncated the vector to just two elements through `v2`:
167
168
169
# let v = vec![1, 2, 3];
170
-# let v2 = v;
+# let mut v2 = v;
171
v2.truncate(2);
172
173
0 commit comments