File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/stable/src/doc/book Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 37a952a672ca79bfcc41795e378a710c196a557a
32
+ refs/heads/stable: 1536195ce66dcf764782e1f36ced4aa5eefef321
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ Now consider the following code fragment:
139
139
``` rust
140
140
let v = vec! [1 , 2 , 3 ];
141
141
142
- let v2 = v ;
142
+ let mut v2 = v ;
143
143
```
144
144
145
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
167
168
168
``` rust
169
169
# let v = vec! [1 , 2 , 3 ];
170
- # let v2 = v ;
170
+ # let mut v2 = v ;
171
171
v2 . truncate (2 );
172
172
```
173
173
You can’t perform that action at this time.
0 commit comments