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.