mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-31 22:02:03 +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
|
||||
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user