]> granicus.if.org Git - python/commitdiff
Fix wrong documentation, and correct the punktuation.
authorThomas Heller <theller@ctypes.org>
Fri, 8 Jun 2007 19:08:31 +0000 (19:08 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 8 Jun 2007 19:08:31 +0000 (19:08 +0000)
Closes [1700455].

Doc/lib/libctypes.tex

index f19507a4fd19d295342e0c010a4f393188ed83f5..346863dbc6c38d25bacc39ba7e1ee40dc92a94d8 100755 (executable)
@@ -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