From a96c6fe9c3b782e2c450a6c0f3a46ec248ae18ba Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Wed, 7 Sep 2016 12:20:58 +0100 Subject: [PATCH] Added a `"` to close the line (#339) You may also want to make use of: ``` .. code:: python ``` instead of just `::`. Sphinx will then do the colour highlighting for you and may have helped catch this. Ooh, and also, it wasn't immediately obvious to me here that `include` is imported from `from channels.routing`. You may want to add that to the code sample. --- docs/getting-started.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started.rst b/docs/getting-started.rst index b52f723..4bdda26 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -506,7 +506,7 @@ routing our chat from above:: ] chat_routing = [ - route("websocket.connect", chat_connect, path=r"^/(?P[a-zA-Z0-9_]+)/$), + route("websocket.connect", chat_connect, path=r"^/(?P[a-zA-Z0-9_]+)/$"), route("websocket.disconnect", chat_disconnect), ]