1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 18:12:57 +01:00

Merge pull request #33 from Gowee/master

Fix two typos in Basics/{Server, Extractors}.
This commit is contained in:
Nikolay Kim 2018-07-11 14:08:56 +06:00 committed by GitHub
commit 6481cd2d27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.