Commit fd79b58 1 parent b5199be commit fd79b58 Copy full SHA for fd79b58
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ impl syn::parse::Parse for Autoprops {
59
59
syn:: Error :: new_spanned (
60
60
sig,
61
61
"could not find #[function_component] attribute in function declaration \
62
- (#[autoprops] must be place *before* #[function_component])",
62
+ (#[autoprops] must be place *before* #[function_component])",
63
63
)
64
64
} ) ?;
65
65
Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ impl Parse for FunctionComponent {
137
137
}
138
138
ty => {
139
139
let msg = format ! (
140
- "expected a reference to a `Properties` type \
141
- (try: `&{}` or use #[autoprops])",
140
+ "expected a reference to a `Properties` type (try: `&{}` or use \
141
+ #[autoprops])",
142
142
ty. to_token_stream( )
143
143
) ;
144
144
return Err ( syn:: Error :: new_spanned ( ty, msg) ) ;
@@ -160,8 +160,8 @@ impl Parse for FunctionComponent {
160
160
let params: TokenStream = inputs. map ( |it| it. to_token_stream ( ) ) . collect ( ) ;
161
161
return Err ( syn:: Error :: new_spanned (
162
162
params,
163
- "function components can accept at most one parameter for the props, \
164
- maybe you wanted to use #[autoprops]?",
163
+ "function components can accept at most one parameter for the props, maybe you \
164
+ wanted to use #[autoprops]?",
165
165
) ) ;
166
166
}
167
167
You can’t perform that action at this time.
0 commit comments