summaryrefslogtreecommitdiff
path: root/docs/library/struct.rst
diff options
context:
space:
mode:
authorLaurens Valk <laurens@pybricks.com>2022-12-01 15:52:33 +0100
committerDamien George <damien.p.george@gmail.com>2022-12-06 17:46:42 +1100
commit6503cd47afae82e7839d1f8456a397c2835bdf0b (patch)
treed8e497129b4d51e12760caf847dede8f3094a16e /docs/library/struct.rst
parenta2347433b01cb58468da51792e7e0229ebe6453d (diff)
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>
Diffstat (limited to 'docs/library/struct.rst')
-rw-r--r--docs/library/struct.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/library/struct.rst b/docs/library/struct.rst
index 92757aba8..896c02793 100644
--- a/docs/library/struct.rst
+++ b/docs/library/struct.rst
@@ -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.