summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2016-08-15 17:34:37 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2016-08-15 17:36:02 +0800
commite247b562ac85565dfac33e676e2915489af04183 (patch)
treee94aec3358aecadda5370a905be6f73c597188c7 /doc
parent7a0d2c83bf2b0422e2d0ed297f847fc1eeb88bb3 (diff)
downloadlibffi-e247b562ac85565dfac33e676e2915489af04183.tar.gz
doc: fix typo
Name of last argument to ffi_get_struct_offsets is `offsets`, not `sizes` Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/libffi.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/libffi.texi b/doc/libffi.texi
index 94b7a9e..4f16762 100644
--- a/doc/libffi.texi
+++ b/doc/libffi.texi
@@ -474,9 +474,9 @@ Compute the offset of each element of the given structure type.
@var{abi} is the ABI to use; this is needed because in some cases the
layout depends on the ABI.
-@var{sizes} is an out parameter. The caller is responsible for
+@var{offsets} is an out parameter. The caller is responsible for
providing enough space for all the results to be written -- one
-element per element type in @var{struct_type}. If @var{sizes} is
+element per element type in @var{struct_type}. If @var{offsets} is
@code{NULL}, then the type will be laid out but not otherwise
modified. This can be useful for accessing the type's size or layout,
as mentioned above.