summaryrefslogtreecommitdiff
path: root/docs/library/ustruct.rst
diff options
context:
space:
mode:
authorJason Neal <jason.neal@astro.up.pt>2020-01-11 19:44:17 +1300
committerDamien George <damien.p.george@gmail.com>2020-01-12 13:44:59 +1100
commit7ef2f65114f092be6303c145a2560fdf522dcde0 (patch)
tree52ea36a8dc03bc5e6a4b0b4b332a5c8d784d8a39 /docs/library/ustruct.rst
parent6632dd3981cbdca8e70c0bf19e36338101e9ce0e (diff)
docs/library: Add / to indicate positional-only args in library docs.
Removes the confusion of positional-only arguments which have defaults that look like keyword arguments.
Diffstat (limited to 'docs/library/ustruct.rst')
-rw-r--r--docs/library/ustruct.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/library/ustruct.rst b/docs/library/ustruct.rst
index 81915d0a8..357d622b2 100644
--- a/docs/library/ustruct.rst
+++ b/docs/library/ustruct.rst
@@ -35,7 +35,7 @@ Functions
Unpack from the *data* according to the format string *fmt*.
The return value is a tuple of the unpacked values.
-.. function:: unpack_from(fmt, data, offset=0)
+.. 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