From abf8534ea96dbe77445503a98c5f4b1949c64acf Mon Sep 17 00:00:00 2001 From: Sam Havens <47401552+sam-qordoba@users.noreply.github.com> Date: Fri, 15 Mar 2019 10:28:15 -0700 Subject: [PATCH] fix typo in Asyncio example (#1510) * fix typo * args to kwargs --- docs/sanic/asyncio_python37.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sanic/asyncio_python37.rst b/docs/sanic/asyncio_python37.rst index 1b09c1b347..5bdb9e4565 100644 --- a/docs/sanic/asyncio_python37.rst +++ b/docs/sanic/asyncio_python37.rst @@ -31,7 +31,7 @@ This example shows how to use sanic with Python 3.7, to be precise: how to retri sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) try: - os.remote(server_socket) + os.remove(server_socket) finally: sock.bind(server_socket) @@ -40,7 +40,7 @@ This example shows how to use sanic with Python 3.7, to be precise: how to retri srv_coro = app.create_server( sock=sock, return_asyncio_server=True, - asyncio_server_args=dict( + asyncio_server_kwargs=dict( start_serving=False ) )