From: Alex Wendland Date: Sat, 9 Nov 2024 14:19:27 +0000 (+0000) Subject: 📝 Update includes in `docs/en/docs/tutorial/path-params.md` (#12811) X-Git-Tag: 0.115.5~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f671b8b5a6b8550f254957a99f28090dc073363;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Update includes in `docs/en/docs/tutorial/path-params.md` (#12811) --- diff --git a/docs/en/docs/tutorial/path-params.md b/docs/en/docs/tutorial/path-params.md index fd9e745856..7e83d3ae57 100644 --- a/docs/en/docs/tutorial/path-params.md +++ b/docs/en/docs/tutorial/path-params.md @@ -2,9 +2,7 @@ You can declare path "parameters" or "variables" with the same syntax used by Python format strings: -```Python hl_lines="6-7" -{!../../docs_src/path_params/tutorial001.py!} -``` +{* ../../docs_src/path_params/tutorial001.py hl[6:7] *} The value of the path parameter `item_id` will be passed to your function as the argument `item_id`. @@ -18,9 +16,7 @@ So, if you run this example and go to