Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1005:3be96f74ff77
Date: 2012-10-25 20:50 +0200
http://bitbucket.org/cffi/cffi/changeset/3be96f74ff77/

Log:    Uh, this method is misnamed in the docs.

diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1039,12 +1039,12 @@
 ``ffi.offsetof("C struct type", "fieldname")``: return the offset within
 the struct of the given field.  Corresponds to ``offsetof()`` in C.
 
-``ffi.getcname("C type" or <ctype>, extra="")``: return the string
+``ffi.getctype("C type" or <ctype>, extra="")``: return the string
 representation of the given C type.  If non-empty, the "extra" string is
 appended (or inserted at the right place in more complicated cases); it
 can be the name of a variable to declare, or an extra part of the type
 like ``"*"`` or ``"[5]"``.  For example
-``ffi.getcname(ffi.typeof(x), "*")`` returns the string representation
+``ffi.getctype(ffi.typeof(x), "*")`` returns the string representation
 of the C type "pointer to the same type than x".
 
 ``ffi.gc(cdata, destructor)``: return a new cdata object that points to the
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to