docs/ustruct: Fix argument formatting.
Per current CPython docs conventions, arguments are in italics. Follow that.
This commit is contained in:
parent
a9ed42b3b4
commit
c468fe65c5
@ -12,11 +12,11 @@ Functions
|
|||||||
|
|
||||||
.. function:: calcsize(fmt)
|
.. function:: calcsize(fmt)
|
||||||
|
|
||||||
Return the number of bytes needed to store the given ``fmt``.
|
Return the number of bytes needed to store the given `fmt`.
|
||||||
|
|
||||||
.. function:: pack(fmt, v1, v2, ...)
|
.. function:: pack(fmt, v1, v2, ...)
|
||||||
|
|
||||||
Pack the values ``v1``, ``v2``, ... according to the format string ``fmt``.
|
Pack the values `v1`, `v2`, ... according to the format string `fmt`.
|
||||||
The return value is a bytes object encoding the values.
|
The return value is a bytes object encoding the values.
|
||||||
|
|
||||||
.. function:: pack_into(fmt, buffer, offset, v1, v2, ...)
|
.. function:: pack_into(fmt, buffer, offset, v1, v2, ...)
|
||||||
@ -27,7 +27,7 @@ Functions
|
|||||||
|
|
||||||
.. function:: unpack(fmt, data)
|
.. function:: unpack(fmt, data)
|
||||||
|
|
||||||
Unpack from the ``data`` according to the format string ``fmt``.
|
Unpack from the `data` according to the format string `fmt`.
|
||||||
The return value is a tuple of the unpacked values.
|
The return value is a tuple of the unpacked values.
|
||||||
|
|
||||||
.. function:: unpack_from(fmt, data, offset=0)
|
.. function:: unpack_from(fmt, data, offset=0)
|
||||||
|
Loading…
Reference in New Issue
Block a user