diff --git a/vec-drain.md b/vec-drain.md index edad06c..6e732ee 100644 --- a/vec-drain.md +++ b/vec-drain.md @@ -132,7 +132,7 @@ impl Vec { unsafe { let iter = RawValIter::new(&self); - // this is a mem::forget safety thing. If this is forgotten, we just + // this is a mem::forget safety thing. If Drain is forgotten, we just // leak the whole Vec's contents. Also we need to do this *eventually* // anyway, so why not do it now? self.len = 0; diff --git a/vec-final.md b/vec-final.md index ace8f20..ba4537f 100644 --- a/vec-final.md +++ b/vec-final.md @@ -158,7 +158,7 @@ impl Vec { unsafe { let iter = RawValIter::new(&self); - // this is a mem::forget safety thing. If this is forgotten, we just + // this is a mem::forget safety thing. If Drain is forgotten, we just // leak the whole Vec's contents. Also we need to do this *eventually* // anyway, so why not do it now? self.len = 0;