From: tim-habitat <86600518+tim-habitat@users.noreply.github.com> Date: Thu, 13 Apr 2023 18:30:21 +0000 (+0100) Subject: ✏ Fix typo/bug in inline code example in `docs/en/docs/tutorial/query-params-str... X-Git-Tag: 0.95.1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08ba3a98a39859c1a8110d78df58478116863c07;p=thirdparty%2Ffastapi%2Ffastapi.git ✏ Fix typo/bug in inline code example in `docs/en/docs/tutorial/query-params-str-validations.md` (#9273) --- diff --git a/docs/en/docs/tutorial/query-params-str-validations.md b/docs/en/docs/tutorial/query-params-str-validations.md index 2debd088a0..8a801cda27 100644 --- a/docs/en/docs/tutorial/query-params-str-validations.md +++ b/docs/en/docs/tutorial/query-params-str-validations.md @@ -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"`.