diff --git a/doc/langref.html.in b/doc/langref.html.in index 7f837186b52d4ddb5a75a77a11722cfd7780ea0e..ac597b3215949e87a24d1538873ff0ed4e9abb91 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1947,8 +1947,24 @@ const Foo = extern enum { A, B, C }; export fn entry(foo: Foo) void { } {#code_end#} {#header_close#} -
TODO packed enum
- {#see_also|@memberName|@memberCount|@tagName#} + {#header_open|packed enum#} +By default, the size of enums is not guaranteed.
+packed enum causes the size of the enum to be the same as the size of the integer tag type
+ of the enum: