Add missing ']' in forms guide.

This commit is contained in:
hiyoko3m 2021-08-09 15:12:41 +09:00 committed by Sergio Benitez
parent 9177b20ff1
commit 5c928488ee
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ struct MyForm<'v> {
# rocket_guide_tests::assert_form_parses_ok!(MyForm, ""); # rocket_guide_tests::assert_form_parses_ok!(MyForm, "");
``` ```
The default can be overridden or unset using the `#[field(default = expr)` field The default can be overridden or unset using the `#[field(default = expr)]` field
attribute. If `expr` is not literally `None`, the parameter sets the default attribute. If `expr` is not literally `None`, the parameter sets the default
value of the field to be `expr.into()`. If `expr` _is_ `None`, the parameter value of the field to be `expr.into()`. If `expr` _is_ `None`, the parameter
_unsets_ the default value of the field, if any. _unsets_ the default value of the field, if any.