mirror of https://github.com/01-edu/public.git
docs(error_types): fix typo
This commit is contained in:
parent
0a3572d111
commit
799ca8670b
|
@ -23,7 +23,6 @@ You must implement the **associated functions** `new` and
|
||||||
`validate` that will validate the form.
|
`validate` that will validate the form.
|
||||||
|
|
||||||
For the error type you must create a `struct` named `FormError`. It must have the fields:
|
For the error type you must create a `struct` named `FormError`. It must have the fields:
|
||||||
|
|
||||||
- `form_values`: this will be a tuple of strings representing the invalid input. For example: `("password", "asdaSD\_")` or `("first_name", "someone")`
|
- `form_values`: this will be a tuple of strings representing the invalid input. For example: `("password", "asdaSD\_")` or `("first_name", "someone")`
|
||||||
|
|
||||||
- `date`: that will have the date that the error occurred in the format `"2020-12-14 09:33:41"`
|
- `date`: that will have the date that the error occurred in the format `"2020-12-14 09:33:41"`
|
||||||
|
|
Loading…
Reference in New Issue