summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-06-08 19:08:31 (GMT)
committerThomas Heller <theller@ctypes.org>2007-06-08 19:08:31 (GMT)
commit1605ba3a0d85949381fd17ab03f3dcf1b4ed3b9a (patch)
treee139d6afd3750267b5282e88608fc20ed2a89677
parent6088f24df28051a9ac62b7b9c43930de8f32a9d2 (diff)
downloadcpython-1605ba3a0d85949381fd17ab03f3dcf1b4ed3b9a.zip
cpython-1605ba3a0d85949381fd17ab03f3dcf1b4ed3b9a.tar.gz
cpython-1605ba3a0d85949381fd17ab03f3dcf1b4ed3b9a.tar.bz2
Fix wrong documentation, and correct the punktuation.
Closes [1700455].
-rwxr-xr-xDoc/lib/libctypes.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex
index f19507a..346863d 100755
--- a/Doc/lib/libctypes.tex
+++ b/Doc/lib/libctypes.tex
@@ -437,8 +437,8 @@ You should be careful, however, not to pass them to functions
expecting pointers to mutable memory. If you need mutable memory
blocks, ctypes has a \code{create{\_}string{\_}buffer} function which creates
these in various ways. The current memory block contents can be
-accessed (or changed) with the \code{raw} property, if you want to access
-it as NUL terminated string, use the \code{string} property:
+accessed (or changed) with the \code{raw} property; if you want to access
+it as NUL terminated string, use the \code{value} property:
\begin{verbatim}
>>> from ctypes import *
>>> p = create_string_buffer(3) # create a 3 byte buffer, initialized to NUL bytes