diff --git a/doc/langref.html.in b/doc/langref.html.in index b2f313b23..c1fe08ddb 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -9322,6 +9322,13 @@ const c = @cImport({
When a C pointer is pointing to a single struct (not an array), deference the C pointer to + access to the struct's fields or member data. That syntax looks like + this:
+{#syntax#}ptr_to_struct.*.struct_member{#endsyntax#}
+This is comparable to doing {#syntax#}->{#endsyntax#} in C.
+When a C pointer is pointing to an array of structs, the syntax reverts to this:
+{#syntax#}ptr_to_struct_array[index].struct_member{#endsyntax#}
{#header_close#} {#header_open|Exporting a C Library#}