From 790afd3fb70bc97dd0f16aa77e1a837270ab76a8 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sat, 2 Jun 2018 08:31:38 -0700 Subject: [PATCH] use tuple for multiple extractors --- content/docs/extractors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/extractors.md b/content/docs/extractors.md index 023362a..489e4f6 100644 --- a/content/docs/extractors.md +++ b/content/docs/extractors.md @@ -22,7 +22,7 @@ function. ```rust // Option 1: passed as a parameter to a handler function -fn index(params: Path<(String, String,)>, info: Json) -> HttpResponse { +fn index((params, info): (Path<(String, String,)>, Json)) -> HttpResponse { ... }