mirror of https://github.com/tiangolo/fastapi.git
✏ Fix typo/bug in inline code example in `docs/en/docs/tutorial/query-params-str-validations.md` (#9273)
This commit is contained in:
parent
0cc8e9cf31
commit
08ba3a98a3
|
|
@ -199,7 +199,7 @@ Instead use the actual default value of the function parameter. Otherwise, it wo
|
|||
For example, this is not allowed:
|
||||
|
||||
```Python
|
||||
q: Annotated[str Query(default="rick")] = "morty"
|
||||
q: Annotated[str, Query(default="rick")] = "morty"
|
||||
```
|
||||
|
||||
...because it's not clear if the default value should be `"rick"` or `"morty"`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue