We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68386fa commit 2dbcd76Copy full SHA for 2dbcd76
shared-bindings/usb_cdc/Serial.c
@@ -54,11 +54,12 @@
54
//| ...
55
//|
56
//| def readinto(self, buf: WriteableBuffer) -> int:
57
-//| """Read bytes into the ``buf``. If ``nbytes`` is specified then read at most
58
-//| that many bytes, subject to `timeout`. Otherwise, read at most ``len(buf)`` bytes.
+//| """Read bytes into the ``buf``. Read at most ``len(buf)`` bytes. If `timeout`
+//| is > 0 or ``None``, keep waiting until the timeout expires or ``len(buf)``
59
+//| bytes are available.
60
61
//| :return: number of bytes read and stored into ``buf``
-//| :rtype: bytes"""
62
+//| :rtype: int"""
63
64
65
//| def readline(self, size: int = -1) -> Optional[bytes]:
0 commit comments