Skip to content

Commit 178b2ec

Browse files
[3.13] Fix some ctypes docs typos (GH-130307) (GH-130343)
Fix some ctypes docs typos (GH-130307) (cherry picked from commit 417372b) Co-authored-by: Alcaro <[email protected]>
1 parent 68c57d6 commit 178b2ec

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
@@ -292,7 +292,7 @@ Since these types are mutable, their value can also be changed afterwards::
292292
Assigning a new value to instances of the pointer types :class:`c_char_p`,
293293
:class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they
294294
point to, *not the contents* of the memory block (of course not, because Python
295-
bytes objects are immutable)::
295+
string objects are immutable)::
296296

297297
>>> s = "Hello, World"
298298
>>> c_s = c_wchar_p(s)
@@ -671,7 +671,7 @@ This must be set to a positive integer and specifies the maximum alignment for t
671671
This is what ``#pragma pack(n)`` also does in MSVC.
672672
It is also possible to set a minimum alignment for how the subclass itself is packed in the
673673
same way ``#pragma align(n)`` works in MSVC.
674-
This can be achieved by specifying a ::attr:`~Structure._align_` class attribute
674+
This can be achieved by specifying a :attr:`~Structure._align_` class attribute
675675
in the subclass definition.
676676

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

0 commit comments

Comments
 (0)