]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏ Fix typo/bug in inline code example in `docs/en/docs/tutorial/query-params-str...
authortim-habitat <86600518+tim-habitat@users.noreply.github.com>
Thu, 13 Apr 2023 18:30:21 +0000 (19:30 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Apr 2023 18:30:21 +0000 (11:30 -0700)
docs/en/docs/tutorial/query-params-str-validations.md

index 2debd088a05997402397d0418b99e66112922c04..8a801cda27e418d33a4bcdf84406b8613002274d 100644 (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"`.