Skip to content

Commit

Permalink
docs: complete the documentation for extern struct
Browse files Browse the repository at this point in the history
closes #1522
  • Loading branch information
andrewrk committed Apr 4, 2019
1 parent e4d595a commit 90b6eab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/langref.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,8 @@ test "linked list" {
{#header_open|extern struct#}
<p>An {#syntax#}extern struct{#endsyntax#} has in-memory layout guaranteed to match the
C ABI for the target.</p>
<p>This kind of struct should only be used for compatibility with the C ABI. Every other
use case should be solved with {#link|packed struct#} or normal {#link|struct#}.</p>
{#see_also|extern union|extern enum#}
{#header_close#}

Expand Down

0 comments on commit 90b6eab

Please sign in to comment.