Fix readme

This commit is contained in:
Riley Trautman 2018-04-30 16:21:49 -05:00
parent 453c4005c5
commit 0376edcacd
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "actix-form-data"
description = "Multipart Form Data for Actix Web"
version = "0.1.2"
version = "0.1.3"
license = "GPL-3.0"
authors = ["asonix <asonix.dev@gmail.com>"]
repository = "https://github.com/asonix/actix-multipart"

View file

@ -11,7 +11,7 @@ Add it to your dependencies.
# Cargo.toml
[dependencies]
actix-form-data = "0.1.2"
actix-form-data = "0.1.3"
```
Require it in your project.
@ -32,10 +32,10 @@ This creates a form with one required field named "field-name" that will be pars
Then, pass it to `handle_multipart` in your request handler.
```rust
let stream = form_data::handle_multipart(req.multipart, form);
let future = form_data::handle_multipart(req.multipart, form);
```
This returns a `Stream<Item = Value, Error = form_data::Error>`, which can be used to
This returns a `Future<Item = Value, Error = form_data::Error>`, which can be used to
fetch your data.
```rust