Skip to content

Commit 2dbcd76

Browse files
committed
usb_cdc.Serial.readinto has no nbytes parameter
1 parent 68386fa commit 2dbcd76

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shared-bindings/usb_cdc/Serial.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@
5454
//| ...
5555
//|
5656
//| 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.
57+
//| """Read bytes into the ``buf``. Read at most ``len(buf)`` bytes. If `timeout`
58+
//| is > 0 or ``None``, keep waiting until the timeout expires or ``len(buf)``
59+
//| bytes are available.
5960
//|
6061
//| :return: number of bytes read and stored into ``buf``
61-
//| :rtype: bytes"""
62+
//| :rtype: int"""
6263
//| ...
6364
//|
6465
//| def readline(self, size: int = -1) -> Optional[bytes]:

0 commit comments

Comments
 (0)