From 1473eb9ae0196db729716aa0d29f5ce263412307 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 16 Nov 2017 22:13:20 -0500 Subject: [PATCH] add documentation placeholders for unions --- doc/langref.html.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/langref.html.in b/doc/langref.html.in index 9aa142fc46..446011541b 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -75,6 +75,7 @@
  • Slices
  • struct
  • enum
  • +
  • union
  • switch
  • while
  • for
  • @@ -209,6 +210,7 @@
  • Invalid Error Code
  • Invalid Enum Cast
  • Incorrect Pointer Alignment
  • +
  • Wrong Union Field Access
  • Memory
  • @@ -2189,6 +2191,8 @@ Test 4/4 enum builtins...OK
  • @enumTagName
  • @memberCount
  • +

    union

    +

    TODO union documentation

    switch

    const assert = @import("std").debug.assert;
     const builtin = @import("builtin");
    @@ -5117,6 +5121,9 @@ comptime {
           

    Incorrect Pointer Alignment

    TODO

    +

    Wrong Union Field Access

    +

    TODO

    +

    Memory

    TODO: explain no default allocator in zig

    TODO: show how to use the allocator interface