]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏️ Fix typo in docstring (#13532)
authorPeter <github@comp.se>
Tue, 17 Jun 2025 10:18:00 +0000 (12:18 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Jun 2025 10:18:00 +0000 (12:18 +0200)
fastapi/applications.py

index 194f088cd7ad12f222de7be094e50edf0fac3dba..7a1db253213e73d411b8da214af45b056662f1ba 100644 (file)
@@ -4425,7 +4425,7 @@ class FastAPI(Starlette):
 
         app = FastAPI()
 
-        @app.put("/items/{item_id}")
+        @app.trace("/items/{item_id}")
         def trace_item(item_id: str):
             return None
         ```