From 6e26b057996c6f3fefa8ad528e2759e53c738844 Mon Sep 17 00:00:00 2001 From: gerrymanoim Date: Wed, 21 Oct 2020 18:44:16 -0400 Subject: [PATCH] Fix syntax error in register_routes docs (#1038) Thanks, @gerrymanoim --- docs/plugin_hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugin_hooks.rst b/docs/plugin_hooks.rst index fc023ad9..5cfae22a 100644 --- a/docs/plugin_hooks.rst +++ b/docs/plugin_hooks.rst @@ -530,7 +530,7 @@ Return a list of ``(regex, view_function)`` pairs, something like this: @hookimpl def register_routes(): return [ - (r"^/hello-from/(?P.*)$"), hello_from) + (r"^/hello-from/(?P.*)$", hello_from) ] The view functions can take a number of different optional arguments. The corresponding argument will be passed to your function depending on its named parameters - a form of dependency injection.