Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 692dba2

Browse files
committed
#12670: Fix struct code after forward declaration on ctypes doc
1 parent ef5c716 commit 692dba2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/ctypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,10 +865,10 @@ later::
865865

866866
struct cell; /* forward declaration */
867867

868-
struct {
868+
struct cell {
869869
char *name;
870870
struct cell *next;
871-
} cell;
871+
};
872872

873873
The straightforward translation into ctypes code would be this, but it does not
874874
work::

0 commit comments

Comments
 (0)