From 95452af44903b4a43a11ec4916fcd67907653363 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 2 Aug 2017 17:41:10 -0700 Subject: [PATCH] Improve form field name error message. --- codegen/src/decorators/derive_form.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/src/decorators/derive_form.rs b/codegen/src/decorators/derive_form.rs index 5c2a6ba8..5c986d0c 100644 --- a/codegen/src/decorators/derive_form.rs +++ b/codegen/src/decorators/derive_form.rs @@ -182,7 +182,7 @@ pub fn extract_field_ident_name(ecx: &ExtCtxt, struct_field: &StructField) let sp = inner_item.span.shorten_upto(name.len() + 2); if !is_valid_field_name(&name) { ecx.struct_span_err(sp, "invalid form field name") - .help("field names be visible ASCII characters without '&', '=', or '?'") + .help("field names must be visible ASCII without '&', '=', or '?'") .emit(); }