mirror of https://github.com/rwf2/Rocket.git
Fix markdown word wrap.
This commit is contained in:
parent
5c928488ee
commit
010e762125
|
@ -882,10 +882,10 @@ 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)]`
|
||||||
attribute. If `expr` is not literally `None`, the parameter sets the default
|
field attribute. If `expr` is not literally `None`, the parameter sets the
|
||||||
value of the field to be `expr.into()`. If `expr` _is_ `None`, the parameter
|
default value of the field to be `expr.into()`. If `expr` _is_ `None`, the
|
||||||
_unsets_ the default value of the field, if any.
|
parameter _unsets_ the default value of the field, if any.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
# use rocket::form::FromForm;
|
# use rocket::form::FromForm;
|
||||||
|
|
Loading…
Reference in New Issue