1
0
mirror of https://github.com/actix/actix-website synced 2024-11-24 00:41:07 +01:00

Fix two typos in Basics/{Server, Extractors}.

This commit is contained in:
Hung-I Wang 2018-06-28 08:24:48 +08:00
parent bc5989fa38
commit 51265305a6
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ When you register a handler using `Route::with()`, it returns a configuration in
a *Json* extractor it returns a *JsonConfig*. You can configure the maximum size of the json a *Json* extractor it returns a *JsonConfig*. You can configure the maximum size of the json
payload as well as a custom error handler function. payload as well as a custom error handler function.
The following example limits the size of the payload to 4kb and uses a custom error hander. The following example limits the size of the payload to 4kb and uses a custom error handler.
```rust ```rust
#[macro_use] extern crate serde_derive; #[macro_use] extern crate serde_derive;

View File

@ -15,7 +15,7 @@ application factory must have `Send` + `Sync` boundaries. More about that in the
To bind to a specific socket address, To bind to a specific socket address,
[`bind()`](../../actix-web/actix_web/server/struct.HttpServer.html#method.bind) [`bind()`](../../actix-web/actix_web/server/struct.HttpServer.html#method.bind)
must be used, and it may be called multiple times. To bind ssl socket must be used, and it may be called multiple times. To bind ssl socket,
[`bind_ssl()`](../../actix-web/actix_web/server/struct.HttpServer.html#method.bind_ssl) [`bind_ssl()`](../../actix-web/actix_web/server/struct.HttpServer.html#method.bind_ssl)
or [`bind_tls()`](../../actix-web/actix_web/server/struct.HttpServer.html#method.bind_tls) or [`bind_tls()`](../../actix-web/actix_web/server/struct.HttpServer.html#method.bind_tls)
should be used. To start the http server, one of the start methods. should be used. To start the http server, one of the start methods.