]> granicus.if.org Git - python/commitdiff
Change an example in the docs to avoid a mistake when the code is copy
authorThomas Heller <theller@ctypes.org>
Fri, 16 Jan 2009 18:53:44 +0000 (18:53 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 16 Jan 2009 18:53:44 +0000 (18:53 +0000)
pasted and changed afterwards.

Doc/library/ctypes.rst

index 9ff3de053cbb6660a2a0c9cc772e1b78e273d3ff..a98382c0182b0da42909e8c3cc59d9335238645b 100644 (file)
@@ -2441,10 +2441,10 @@ other data types containing pointer type fields.
                          ("hreftype", HREFTYPE)]
 
          class TYPEDESC(Structure):
+             _anonymous_ = ("u",)
              _fields_ = [("u", _U),
                          ("vt", VARTYPE)]
 
-             _anonymous_ = ("u",)
 
       The ``TYPEDESC`` structure describes a COM data type, the ``vt`` field
       specifies which one of the union fields is valid.  Since the ``u`` field