Fix typo: 'FromFrom' -> 'FromForm'.

This commit is contained in:
Beep LIN 2023-02-26 18:47:44 +08:00 committed by Sergio Benitez
parent 0a0f540988
commit 78e6e55aa2
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ use crate::http::uncased::AsUncased;
/// A form guard is a guard that operates on form fields, typically those with a
/// particular name prefix. Form guards validate and parse form field data via
/// implementations of `FromForm`. In other words, a type is a form guard _iff_
/// it implements `FromFrom`.
/// it implements `FromForm`.
///
/// Form guards are used as the inner type of the [`Form`] data guard:
///

View File

@ -362,7 +362,7 @@ out-of-the-box, and you can implement your own, too. See the following:
* Parameter Guards: [`FromParam`]
* Multi-Segment Guards: [`FromSegments`]
* Data Guards: [`FromData`]
* Form Guards: [`FromFrom`]
* Form Guards: [`FromForm`]
* Request Guards: [`FromRequest`]
</div>
</details>
@ -371,7 +371,7 @@ out-of-the-box, and you can implement your own, too. See the following:
[`FromParam`]: @api/rocket/request/trait.FromParam.html
[`FromSegments`]: @api/rocket/request/trait.FromSegments.html
[`FromData`]: @api/rocket/data/trait.FromData.html
[`FromFrom`]: @api/rocket/form/trait.FromForm.html
[`FromForm`]: @api/rocket/form/trait.FromForm.html
[`FromRequest`]: @api/rocket/request/trait.FromRequest.html
<details id="response-headers">