Skip to content

Commit 417372b

Browse files
authored
Fix some ctypes docs typos (GH-130307)
1 parent 10b3205 commit 417372b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/ctypes.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Since these types are mutable, their value can also be changed afterwards::
306306
Assigning a new value to instances of the pointer types :class:`c_char_p`,
307307
:class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they
308308
point to, *not the contents* of the memory block (of course not, because Python
309-
bytes objects are immutable)::
309+
string objects are immutable)::
310310

311311
>>> s = "Hello, World"
312312
>>> c_s = c_wchar_p(s)
@@ -689,7 +689,7 @@ This matches what ``#pragma pack(n)`` does in MSVC.
689689

690690
It is also possible to set a minimum alignment for how the subclass itself is packed in the
691691
same way ``#pragma align(n)`` works in MSVC.
692-
This can be achieved by specifying a ::attr:`~Structure._align_` class attribute
692+
This can be achieved by specifying a :attr:`~Structure._align_` class attribute
693693
in the subclass definition.
694694

695695
:mod:`ctypes` uses the native byte order for Structures and Unions. To build

0 commit comments

Comments
 (0)