diff --git a/guide/src/qs_2.md b/guide/src/qs_2.md index b76855c8..a3b9e815 100644 --- a/guide/src/qs_2.md +++ b/guide/src/qs_2.md @@ -58,7 +58,9 @@ After that, application instance can be used with `HttpServer` to listen for inc connections. Server accepts function that should return `HttpHandler` instance: ```rust,ignore - HttpServer::new(|| app).serve::<_, ()>("127.0.0.1:8088"); + HttpServer::new(|| app) + .bind("127.0.0.1:8088")? + .start(); ``` That's it. Now, compile and run the program with cargo run. @@ -92,5 +94,5 @@ fn main() { Note on `actix` crate. Actix web framework is built on top of actix actor library. `actix::System` initializes actor system, `HttpServer` is an actor and must run within -proper configured actix system. For more information please check +properly configured actix system. For more information please check [actix documentation](https://actix.github.io/actix/actix/) diff --git a/guide/src/qs_3_5.md b/guide/src/qs_3_5.md index 01ccffd9..dfde017d 100644 --- a/guide/src/qs_3_5.md +++ b/guide/src/qs_3_5.md @@ -47,7 +47,7 @@ fn main() { HttpServer::::new( || Application::new() .resource("/", |r| r.f(|_| httpcodes::HTTPOk))) - .threads(4); // <- Start 4 threads + .threads(4); // <- Start 4 workers } ``` @@ -88,7 +88,7 @@ Note on *HTTP/2.0* protocol over tls without prior knowledge, it requires `openssl` has `alpn ` support. Please check [example](https://github.com/actix/actix-web/tree/master/examples/tls) -for concrete example. +for full example. ## Keep-Alive