From 254b61e8002fc45446c24662f47e49749b1157d6 Mon Sep 17 00:00:00 2001 From: Max Frai Date: Tue, 26 Mar 2019 18:07:19 +0200 Subject: [PATCH] Fix copy/paste mistake in error message (#733) --- actix-web-codegen/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-web-codegen/src/lib.rs b/actix-web-codegen/src/lib.rs index 13d1b97f5..16123930a 100644 --- a/actix-web-codegen/src/lib.rs +++ b/actix-web-codegen/src/lib.rs @@ -48,7 +48,7 @@ pub fn get(args: TokenStream, input: TokenStream) -> TokenStream { pub fn post(args: TokenStream, input: TokenStream) -> TokenStream { let args = parse_macro_input!(args as syn::AttributeArgs); if args.is_empty() { - panic!("invalid server definition, expected: #[get(\"some path\")]"); + panic!("invalid server definition, expected: #[post(\"some path\")]"); } // path @@ -85,7 +85,7 @@ pub fn post(args: TokenStream, input: TokenStream) -> TokenStream { pub fn put(args: TokenStream, input: TokenStream) -> TokenStream { let args = parse_macro_input!(args as syn::AttributeArgs); if args.is_empty() { - panic!("invalid server definition, expected: #[get(\"some path\")]"); + panic!("invalid server definition, expected: #[put(\"some path\")]"); } // path