File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ impl<T> Vec<T> {
132
132
unsafe {
133
133
let iter = RawValIter::new(&self);
134
134
135
- // this is a mem::forget safety thing. If this is forgotten, we just
135
+ // this is a mem::forget safety thing. If Drain is forgotten, we just
136
136
// leak the whole Vec's contents. Also we need to do this *eventually*
137
137
// anyway, so why not do it now?
138
138
self.len = 0;
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ impl<T> Vec<T> {
158
158
unsafe {
159
159
let iter = RawValIter :: new (& self );
160
160
161
- // this is a mem::forget safety thing. If this is forgotten, we just
161
+ // this is a mem::forget safety thing. If Drain is forgotten, we just
162
162
// leak the whole Vec's contents. Also we need to do this *eventually*
163
163
// anyway, so why not do it now?
164
164
self . len = 0 ;
You can’t perform that action at this time.
0 commit comments