diff --git a/src/server.rs b/src/server.rs index 98c195f8..2a4120d1 100644 --- a/src/server.rs +++ b/src/server.rs @@ -41,28 +41,14 @@ impl WireframeServer where F: Fn() -> WireframeApp + Send + Sync + Clone + 'static, { - /// Constructs a new `WireframeServer` using the provided application factory - /// closure. + /// Create a new `WireframeServer` from the given application factory. /// - /// The default worker count equals the number of CPU cores. - /// - /// If the CPU count cannot be determined, the server defaults to a single - /// worker. - /// - /// ```ignore - /// use wireframe::{app::WireframeApp, server::WireframeServer}; - /// - /// let factory = || WireframeApp::new().unwrap(); - /// let server = WireframeServer::new(factory); - /// ``` - /// - /// Creates a new `WireframeServer` with the provided factory closure. - /// - /// The server is initialised with a default worker count equal to the number of available CPU cores, or 1 if this cannot be determined. The TCP listener is unset and must be configured with `bind` before running the server. + /// The worker count defaults to the number of available CPU cores (or 1 if this cannot be determined). + /// The TCP listener is unset; call [`bind`](Self::bind) before running the server. /// /// # Examples /// - /// ```ignore + /// ```no_run /// use wireframe::{app::WireframeApp, server::WireframeServer}; /// /// let server = WireframeServer::new(|| WireframeApp::default());