docs/library/struct: Fix buffer argument description.

The buffer is the data in this case. There is no buffer argument.

Signed-off-by: Laurens Valk <laurens@pybricks.com>
This commit is contained in:
Laurens Valk 2022-12-01 15:52:33 +01:00 committed by Damien George
parent a2347433b0
commit 6503cd47af

View File

@ -43,5 +43,5 @@ Functions
.. function:: unpack_from(fmt, data, offset=0, /)
Unpack from the *data* starting at *offset* according to the format string
*fmt*. *offset* may be negative to count from the end of *buffer*. The return
*fmt*. *offset* may be negative to count from the end of *data*. The return
value is a tuple of the unpacked values.