]> granicus.if.org Git - python/commitdiff
Merged revisions 68633 via svnmerge from
authorGeorg Brandl <georg@python.org>
Tue, 27 Oct 2009 13:15:21 +0000 (13:15 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 27 Oct 2009 13:15:21 +0000 (13:15 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68633 | thomas.heller | 2009-01-16 19:53:44 +0100 (Fr, 16 Jan 2009) | 3 lines

  Change an example in the docs to avoid a mistake when the code is copy
  pasted and changed afterwards.
........

Doc/library/ctypes.rst

index 5da4c9d22e30569631b838bf580cfad017a6a71a..9a1acd6f34305917f85dcd4291d23411c0c9c827 100644 (file)
@@ -2442,10 +2442,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