From: Thomas Heller Date: Fri, 8 Jun 2007 19:19:24 +0000 (+0000) Subject: Fix wrong documentation, and correct the punktuation. X-Git-Tag: v2.5.2c1~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc9e5dcf887005a9ffc0bca0baedb21df20cb6b0;p=thirdparty%2FPython%2Fcpython.git Fix wrong documentation, and correct the punktuation. Closes [1700455]. Backported from trunk. --- diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex index 184875f1b5b4..786b9668b56b 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