From 6a7b097bcf70f08100b4f4818c153c2cc6b85eef Mon Sep 17 00:00:00 2001 From: Aleksey Ivanov Date: Tue, 17 Apr 2018 16:01:34 +0300 Subject: [PATCH] Fix route in App::resource example --- src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application.rs b/src/application.rs index ff37b78f..f78335f1 100644 --- a/src/application.rs +++ b/src/application.rs @@ -314,7 +314,7 @@ where /// /// fn main() { /// let app = App::new() - /// .resource("/test", |r| { + /// .resource("/users/{userid}/{friend}", |r| { /// r.get().f(|_| HttpResponse::Ok()); /// r.head().f(|_| HttpResponse::MethodNotAllowed()); /// });