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: 50d179e0624b74a68982d7002a497a7a3403d360
32
+ refs/heads/stable: a8fd1bbd2f9511e9394fed1112c4ada186eb1b00
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 @@ -171,10 +171,10 @@ v2.truncate(2);
171
171
172
172
and ` v1 ` were still accessible we'd end up with an invalid vector since it
173
173
would not know that the heap data has been truncated. Now, the part of the
174
- vector ` v1 ` on the stack does not agree with its corresponding part on the
174
+ vector ` v1 ` on the stack does not agree with the corresponding part on the
175
175
heap. ` v1 ` still thinks there are three elements in the vector and will
176
176
happily let us access the non existent element ` v1[2] ` but as you might
177
- already know this is a recipe for disaster.
177
+ already know this is a recipe for disaster (might lead to a segfault) .
178
178
179
179
This is why Rust forbids using ` v ` after we’ve done the move.
180
180
You can’t perform that action at this time.
0 commit comments