From be12cf8956c84b72f124748c8a01a9b06ac797d3 Mon Sep 17 00:00:00 2001 From: Arindam Das Date: Sun, 17 Oct 2021 14:15:23 +0530 Subject: [PATCH] Removed redundant line ThreadPool::terminate() docstring. --- src/threadpool.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/threadpool.rs b/src/threadpool.rs index cd68446..009611f 100644 --- a/src/threadpool.rs +++ b/src/threadpool.rs @@ -269,10 +269,7 @@ where /// /// let mut thread_pool = ThreadPool::::new(2); /// thread_pool.terminate(); - /// ``` - /// This method is used in the Drop implementation, where the value - /// is moved instead of a mutable borrow. It is encourage to rely - /// on the Drop mechanism instead for idiomatic cleanup. + /// ``` pub fn terminate(&mut self) -> Result<(), ThreadPoolError> { // Ensure that all threads complete their jobs and // complete pending done notifications if any.