From 4aac36d303389fe399618938b94cd3d61412a919 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Wed, 27 Sep 2023 16:03:09 -0500 Subject: [PATCH] chore(docs): fix function name --- docs/tutorials/todo-app/2-interacting-with-the-list.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/todo-app/2-interacting-with-the-list.rst b/docs/tutorials/todo-app/2-interacting-with-the-list.rst index 98d3cf85b7..7c2dc85465 100644 --- a/docs/tutorials/todo-app/2-interacting-with-the-list.rst +++ b/docs/tutorials/todo-app/2-interacting-with-the-list.rst @@ -59,7 +59,7 @@ default values for the dataclass we have defined: .. figure:: images/swagger-dict-vs-dataclass.png - Documentation for the ``create_item`` route with ``data`` typed as a ``dict`` vs + Documentation for the ``add_item`` route with ``data`` typed as a ``dict`` vs ``dataclass`` Using a dataclass also gives you better validation: Omitting a key such as ``title``