about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJørn Lode <jlode90@gmail.com>2015-09-06 18:21:57 +0200
committerJørn Lode <jlode90@gmail.com>2015-09-06 18:21:57 +0200
commit97dd25094cb1f6575aca71cbe2329382594a8b5e (patch)
tree49d73cd1e7c60948a5301f0f16e3fe7f0cd4158e
parentc08deef9825c62ad8eb4012826b66daca30a731b (diff)
downloadrust-97dd25094cb1f6575aca71cbe2329382594a8b5e.tar.gz
rust-97dd25094cb1f6575aca71cbe2329382594a8b5e.zip
Rustonomicon: Reword potentially confusing comment in Vec::drain.
-rw-r--r--src/doc/nomicon/vec-drain.md2
-rw-r--r--src/doc/nomicon/vec-final.md2
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;