about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-09-29 22:33:57 +0800
committerGitHub <noreply@github.com>2020-09-29 22:33:57 +0800
commitb141e49d8702fa170953aed388eb1510622db79b (patch)
treeb04341db0c610b7c537913c6887a6362e0f8208a
parent9e34b729647f44bfbbc361949b14b5bea65e4996 (diff)
downloadrust-b141e49d8702fa170953aed388eb1510622db79b.tar.gz
rust-b141e49d8702fa170953aed388eb1510622db79b.zip
Fix typo in alloc vec comment
-rw-r--r--library/alloc/src/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index fec4c1e0e50..53667c188f8 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -2281,7 +2281,7 @@ where
 
         // use try-fold since
         // - it vectorizes better for some iterator adapters
-        // - unlike most internal iteration methods methods it only takes a &mut self
+        // - unlike most internal iteration methods, it only takes a &mut self
         // - it lets us thread the write pointer through its innards and get it back in the end
         let sink = InPlaceDrop { inner: dst_buf, dst: dst_buf };
         let sink = iterator