From 03e91ffe0b3d7ecadf1c5b8f1bd8d22545445b3d Mon Sep 17 00:00:00 2001 From: alexey zabelin Date: Wed, 3 May 2017 17:38:08 -0400 Subject: [PATCH] Fix typo in requests.md --- site/guide/requests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/guide/requests.md b/site/guide/requests.md index 57b5dec1..f2423add 100644 --- a/site/guide/requests.md +++ b/site/guide/requests.md @@ -255,7 +255,7 @@ Fields of forms can be easily validated via implementations of the `FromFormValue` trait. For example, if you'd like to verify that some user is over some age in a form, then you might define a new `AdultAge` type, use it as a field in a form structure, and implement `FromFormValue` so that it only -validates integers over that age. If a form is a submitted with a bad age, +validates integers over that age. If a form is submitted with a bad age, Rocket won't call a handler requiring a valid form for that structure. You can use `Option` or `Result` types for fields to catch parse failures.