1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 23:05:56 +01:00

fix readme example

This commit is contained in:
Nikolay Kim 2018-04-10 12:42:41 -07:00
parent d9ba78526e
commit 4273b95066

View File

@ -18,8 +18,8 @@ pub struct MyObj {
}
fn index(msg: ProtoBuf<MyObj>) -> Result<HttpResponse> {
println!("model: {:?}", val);
HttpResponse::Ok().protobuf(val) // <- send response
println!("model: {:?}", msg);
HttpResponse::Ok().protobuf(msg) // <- send response
}
```