Improve form field name error message.

This commit is contained in:
Sergio Benitez 2017-08-02 17:41:10 -07:00
parent 952c98fc04
commit 95452af449
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}