Skip to content

Commit dade2af

Browse files
committed
---
yaml --- r: 275006 b: refs/heads/stable c: 1536195 h: refs/heads/master
1 parent 687d7f4 commit dade2af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 37a952a672ca79bfcc41795e378a710c196a557a
32+
refs/heads/stable: 1536195ce66dcf764782e1f36ced4aa5eefef321
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/doc/book/ownership.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Now consider the following code fragment:
139139
```rust
140140
let v = vec![1, 2, 3];
141141

142-
let v2 = v;
142+
let mut v2 = v;
143143
```
144144

145145
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`:
167167

168168
```rust
169169
# let v = vec![1, 2, 3];
170-
# let v2 = v;
170+
# let mut v2 = v;
171171
v2.truncate(2);
172172
```
173173

0 commit comments

Comments
 (0)