From 8223d126b99088dc377c8e0263740b0d6835b54a Mon Sep 17 00:00:00 2001 From: Matt Gathu Date: Sun, 13 Sep 2020 20:01:07 +0200 Subject: [PATCH] Add example in docs to illustrate route macro use --- actix-web-codegen/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actix-web-codegen/src/lib.rs b/actix-web-codegen/src/lib.rs index 4bbbde640..7ae6a26b1 100644 --- a/actix-web-codegen/src/lib.rs +++ b/actix-web-codegen/src/lib.rs @@ -145,6 +145,8 @@ pub fn patch(args: TokenStream, input: TokenStream) -> TokenStream { /// /// Syntax: `#[route("path"[, attributes])]` /// +/// Example: `#[route("/", method="GET", method="HEAD")]` +/// /// ## Attributes /// /// - `"path"` - Raw literal string with path for which to register handler. Mandatory.