Commits

Armin Rigo committed 3be96f7

Uh, this method is misnamed in the docs.

Comments (0)

Files changed (1)

doc/source/index.rst

 ``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