From d85e479be666c36533a3ef31a7ab04b2ec5c1cdf Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 31 May 2017 15:28:54 -0400 Subject: [PATCH] Minor fix in migrating page. --- docs/migrating.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migrating.rst b/docs/migrating.rst index 1b656e6a6..947889b20 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -638,7 +638,7 @@ For example, to wait for a message: :: def pred(m): return m.author == message.author and m.channel == message.channel - msg = await client.wait_for('message', check=m) + msg = await client.wait_for('message', check=pred) To facilitate multiple returns, :meth:`Client.wait_for` returns either a single argument, no arguments, or a tuple of arguments.