mirror of
https://github.com/rwf2/Rocket.git
synced 2025-03-05 14:02:01 +00:00
Fix typo in pastebin tutorial.
This commit is contained in:
parent
2191369b37
commit
a62cc654be
@ -307,7 +307,7 @@ using a type more specific than `&str` to represent IDs and then asking Rocket
|
|||||||
to validate the untrusted `id` input as that type. If validation fails, Rocket
|
to validate the untrusted `id` input as that type. If validation fails, Rocket
|
||||||
will take care to not call our routes with bad input.
|
will take care to not call our routes with bad input.
|
||||||
|
|
||||||
Typed validation for dynamic paramters like `id` is implemented via the
|
Typed validation for dynamic parameters like `id` is implemented via the
|
||||||
[`FromParam`] trait. Rocket uses `FromParam` to automatically validate and parse
|
[`FromParam`] trait. Rocket uses `FromParam` to automatically validate and parse
|
||||||
dynamic path parameters like `id`. We already have a type that represents valid
|
dynamic path parameters like `id`. We already have a type that represents valid
|
||||||
paste IDs, `PasteId`, so we'll simply need to implement `FromParam` for
|
paste IDs, `PasteId`, so we'll simply need to implement `FromParam` for
|
||||||
|
Loading…
Reference in New Issue
Block a user