Skip to content

Commit b24ab73

Browse files
authored
Fix bytes/string confusion in ctypes docs
1 parent 2498c22 commit b24ab73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
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)

0 commit comments

Comments
 (0)