diff options
| author | Jørn Lode <jlode90@gmail.com> | 2015-09-06 18:21:57 +0200 |
|---|---|---|
| committer | Jørn Lode <jlode90@gmail.com> | 2015-09-06 18:21:57 +0200 |
| commit | 97dd25094cb1f6575aca71cbe2329382594a8b5e (patch) | |
| tree | 49d73cd1e7c60948a5301f0f16e3fe7f0cd4158e | |
| parent | c08deef9825c62ad8eb4012826b66daca30a731b (diff) | |
| download | rust-97dd25094cb1f6575aca71cbe2329382594a8b5e.tar.gz rust-97dd25094cb1f6575aca71cbe2329382594a8b5e.zip | |
Rustonomicon: Reword potentially confusing comment in Vec::drain.
| -rw-r--r-- | src/doc/nomicon/vec-drain.md | 2 | ||||
| -rw-r--r-- | src/doc/nomicon/vec-final.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/nomicon/vec-drain.md b/src/doc/nomicon/vec-drain.md index edad06cd009..6e732ee1074 100644 --- a/src/doc/nomicon/vec-drain.md +++ b/src/doc/nomicon/vec-drain.md @@ -132,7 +132,7 @@ impl<T> Vec<T> { 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/src/doc/nomicon/vec-final.md b/src/doc/nomicon/vec-final.md index ace8f2091fe..ba4537f1640 100644 --- a/src/doc/nomicon/vec-final.md +++ b/src/doc/nomicon/vec-final.md @@ -158,7 +158,7 @@ impl<T> Vec<T> { 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; |
