From 78e6e55aa25ac14b6749defe8f9c33abb2406f6b Mon Sep 17 00:00:00 2001 From: Beep LIN Date: Sun, 26 Feb 2023 18:47:44 +0800 Subject: [PATCH] Fix typo: 'FromFrom' -> 'FromForm'. --- core/lib/src/form/from_form.rs | 2 +- site/guide/12-faq.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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