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.