diff --git a/core/lib/src/form/from_form.rs b/core/lib/src/form/from_form.rs index 868d1d02..fbde953d 100644 --- a/core/lib/src/form/from_form.rs +++ b/core/lib/src/form/from_form.rs @@ -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: /// diff --git a/site/guide/12-faq.md b/site/guide/12-faq.md index b2bb5cb0..d7f77912 100644 --- a/site/guide/12-faq.md +++ b/site/guide/12-faq.md @@ -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`] @@ -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