From 3cd5d8b07af7341a466e10527bdabff1b300001e Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 29 Oct 2023 18:47:38 +0000 Subject: [PATCH] doc: complete ServerBuilder::workers docs --- actix-server/src/builder.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index dcb05d44..bd5418c1 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -72,13 +72,14 @@ impl ServerBuilder { /// Sets number of workers to start. /// - /// `num` must be greater than 0. - /// - /// Note that the factory + /// See [`bind()`](Self::bind()) for more details on how worker count affects the number of + /// server factory instantiations. /// /// The default worker count is the determined by [`std::thread::available_parallelism()`]. See /// its documentation to determine what behavior you should expect when server is run. /// + /// `num` must be greater than 0. + /// /// # Panics /// /// Panics if `num` is 0.