From d4f9f1aa1298668237821e480824ab5f7d8146d1 Mon Sep 17 00:00:00 2001 From: qwer252 Date: Thu, 12 Jun 2025 14:39:15 +0800 Subject: [PATCH] Update lib.rs --- listings/ch21-web-server/listing-21-13/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/listings/ch21-web-server/listing-21-13/src/lib.rs b/listings/ch21-web-server/listing-21-13/src/lib.rs index 35960e7..ff5a579 100644 --- a/listings/ch21-web-server/listing-21-13/src/lib.rs +++ b/listings/ch21-web-server/listing-21-13/src/lib.rs @@ -2,13 +2,13 @@ pub struct ThreadPool; // ANCHOR: here impl ThreadPool { - /// Create a new ThreadPool. + /// 创建一个新的线程池。 /// - /// The size is the number of threads in the pool. + /// size 是池中线程的数量。 /// /// # Panics /// - /// The `new` function will panic if the size is zero. + /// 如果 size 为 0 ,`new` 方法会 panic。 pub fn new(size: usize) -> ThreadPool { assert!(size > 0);