From a0b4fdad02cb646a9563e73e40e62479b744e60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20Lode?= Date: Sun, 6 Sep 2015 18:21:57 +0200 Subject: [PATCH] Rustonomicon: Reword potentially confusing comment in Vec::drain. --- vec-drain.md | 2 +- vec-final.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;