aboutsummaryrefslogtreecommitdiff
path: root/docs/library/usocket.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library/usocket.rst')
-rw-r--r--docs/library/usocket.rst8
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/library/usocket.rst b/docs/library/usocket.rst
index 9b279e5ba..e3b2b4501 100644
--- a/docs/library/usocket.rst
+++ b/docs/library/usocket.rst
@@ -178,14 +178,10 @@ Methods
Closing the file object returned by makefile() WILL close the
original socket as well.
- .. method:: socket.read(size)
+ .. method:: socket.read([size])
Read up to size bytes from the socket. Return a bytes object. If ``size`` is not given, it
- behaves just like ``socket.readall()``, see below.
-
- .. method:: socket.readall()
-
- Read all data available from the socket until ``EOF``. This function will not return until
+ reads all data available from the socket until ``EOF``; as such the method will not return until
the socket is closed.
.. method:: socket.readinto(buf[, nbytes])