authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-01-03 02:51:45-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-01-03 02:51:45-05:00
logd9d61ed5631cdbde26b62693f233c3473b3ae917
tree53eabf4328f81202d9a8af0636e77926e116301e
parent0ea50b3157f00ab56b2752dfa8c70edb4bce2af7

doc fixes


1 files changed, 9 insertions(+), 4 deletions(-)

doc/langref.html.in+9-4
......@@ -34,6 +34,7 @@
3434 <ul>
3535 <li><a href="#introduction">Introduction</a></li>
3636 <li><a href="#hello-world">Hello World</a></li>
37 <li><a href="#source-encoding">Source Encoding</a></li>
3738 <li><a href="#values">Values</a></li>
3839 <ul>
3940 <li><a href="#primitive-types">Primitive Types</a></li>
......@@ -138,6 +139,7 @@
138139 <li><a href="#builtin-embedFile">@embedFile</a></li>
139140 <li><a href="#builtin-export">@export</a></li>
140141 <li><a href="#builtin-tagName">@tagName</a></li>
142 <li><a href="#builtin-TagType">@TagType</a></li>
141143 <li><a href="#builtin-EnumTagType">@EnumTagType</a></li>
142144 <li><a href="#builtin-errorName">@errorName</a></li>
143145 <li><a href="#builtin-fence">@fence</a></li>
......@@ -291,7 +293,7 @@ pub fn main() -&gt; %void {
291293 <li><a href="#errors">Errors</a></li>
292294 <li><a href="#root-source-file">Root Source File</a></li>
293295 </ul>
294 <h2 id="values">Source encoding</h2>
296 <h2 id="source-encoding">Source Encoding</h2>
295297 <p>Zig source code is encoded in UTF-8. An invalid UTF-8 byte sequence results in a compile error.</p>
296298 <p>Throughout all zig source code (including in comments), some codepoints are never allowed:</p>
297299 <ul>
......@@ -4387,10 +4389,13 @@ test.zig:6:2: error: found compile log statement
43874389 <p>
43884390 Converts an enum value or union value to a slice of bytes representing the name.
43894391 </p>
4390 <h3 id="builtin-EnumTagType">@EnumTagType</h3>
4391 <pre><code class="zig">@EnumTagType(T: type) -&gt; type</code></pre>
4392 <h3 id="builtin-TagType">@TagType</h3>
4393 <pre><code class="zig">@TagType(T: type) -&gt; type</code></pre>
43924394 <p>
4393 Returns the integer type that is used to store the enumeration value.
4395 For an enum, returns the integer type that is used to store the enumeration value.
4396 </p>
4397 <p>
4398 For a union, returns the enum type that is used to store the tag value.
43944399 </p>
43954400 <h3 id="builtin-errorName">@errorName</h3>
43964401 <pre><code class="zig">@errorName(err: error) -&gt; []u8</code></pre>