diff --git a/src/liballoc/linked_list.rs b/src/liballoc/linked_list.rs index 65be087b35e5edcbbe909dd503262bffa038e282..ec579e3fd68d68d17e56bcdccdc213b8f5d7d1de 100644 --- a/src/liballoc/linked_list.rs +++ b/src/liballoc/linked_list.rs @@ -747,8 +747,8 @@ pub fn split_off(&mut self, at: usize) -> LinkedList { /// Creates an iterator which uses a closure to determine if an element should be removed. /// /// If the closure returns true, then the element is removed and yielded. - /// If the closure returns false, it will try again, and call the closure on the next element, - /// seeing if it passes the test. + /// If the closure returns false, the element will remain in the list and will not be yielded + /// by the iterator. /// /// Note that `drain_filter` lets you mutate every element in the filter closure, regardless of /// whether you choose to keep or remove it. diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 39a4d271bd6feb0481e95ee2472e5d52a9cc450b..3c9b6b94b44053c7879c6ff7537494af8ea2aa04 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1966,8 +1966,8 @@ pub fn splice(&mut self, range: R, replace_with: I) -> Splice /// Creates an iterator which uses a closure to determine if an element should be removed. /// /// If the closure returns true, then the element is removed and yielded. - /// If the closure returns false, it will try again, and call the closure - /// on the next element, seeing if it passes the test. + /// If the closure returns false, the element will remain in the vector and will not be yielded + /// by the iterator. /// /// Using this method is equivalent to the following code: ///