Skip to content

Commit 00bf6e6

Browse files
authored
A fix to the struct type example (libffi#837)
Section 2.3.2 Structures of the docs declare `ffi_type`'s `elements` field to be of type `ffi_type **`.
1 parent 45d284f commit 00bf6e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/libffi.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ Here is the corresponding code to describe this struct to
627627
628628
tm_type.size = tm_type.alignment = 0;
629629
tm_type.type = FFI_TYPE_STRUCT;
630-
tm_type.elements = &tm_type_elements;
630+
tm_type.elements = tm_type_elements;
631631
632632
for (i = 0; i < 9; i++)
633633
tm_type_elements[i] = &ffi_type_sint;

0 commit comments

Comments
 (0)