✏ Fix typo/bug in inline code example in `docs/en/docs/tutorial/query-params-str-validations.md` (#9273)

This commit is contained in:
tim-habitat 2023-04-13 19:30:21 +01:00 committed by GitHub
parent 0cc8e9cf31
commit 08ba3a98a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"`.