authorgravatar for 14938807+xackus@users.noreply.github.comxackus <14938807+xackus@users.noreply.github.com> 2019-12-05 22:38:59+01:00
committergravatar for 14938807+xackus@users.noreply.github.comxackus <14938807+xackus@users.noreply.github.com> 2019-12-05 22:40:58+01:00
log71354498c95ae30c661903f7a0baf5a597df4976
tree891c5c2b230718a24fe75e48878acb335f1780a4
parentba78d71b09bc7d139f55fe0d93688e2638e6b8e4

docs: add html lang and minor fixes


2 files changed, 10 insertions(+), 14 deletions(-)

doc/langref.html.in+8-12
......@@ -1,10 +1,10 @@
11<!doctype html>
2<html>
2<html lang="en">
33 <head>
44 <meta charset="utf-8">
55 <title>Documentation - The Zig Programming Language</title>
66 <link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAgklEQVR4AWMYWuD7EllJIM4G4g4g5oIJ/odhOJ8wToOxSTXgNxDHoeiBMfA4+wGShjyYOCkG/IGqWQziEzYAoUAeiF9D5U+DxEg14DRU7jWIT5IBIOdCxf+A+CQZAAoopEB7QJwBCBwHiip8UYmRdrAlDpIMgApwQZNnNii5Dq0MBgCxxycBnwEd+wAAAABJRU5ErkJggg=="/>
7 <style type="text/css">
7 <style>
88 body{
99 font-family: system-ui, -apple-system, Roboto, "Segoe UI", sans-serif;
1010 }
......@@ -511,7 +511,7 @@ pub fn main() void {
511511 </div>
512512 <p>
513513 In addition to the integer types above, arbitrary bit-width integers can be referenced by using
514 an identifier of <code>i</code> or </code>u</code> followed by digits. For example, the identifier
514 an identifier of <code>i</code> or <code>u</code> followed by digits. For example, the identifier
515515 {#syntax#}i7{#endsyntax#} refers to a signed 7-bit integer. The maximum allowed bit-width of an
516516 integer type is {#syntax#}65535{#endsyntax#}.
517517 </p>
......@@ -878,7 +878,7 @@ fn divide(a: i32, b: i32) i32 {
878878 </p>
879879 <p>
880880 Zig supports arbitrary bit-width integers, referenced by using
881 an identifier of <code>i</code> or </code>u</code> followed by digits. For example, the identifier
881 an identifier of <code>i</code> or <code>u</code> followed by digits. For example, the identifier
882882 {#syntax#}i7{#endsyntax#} refers to a signed 7-bit integer. The maximum allowed bit-width of an
883883 integer type is {#syntax#}65535{#endsyntax#}.
884884 </p>
......@@ -5445,8 +5445,6 @@ fn gimmeTheBiggerInteger(a: u64, b: u64) u64 {
54455445 <li>In the function definition, the value is known at compile-time.</li>
54465446 </ul>
54475447 <p>
5448 </p>
5449 <p>
54505448 For example, if we were to introduce another function to the above snippet:
54515449 </p>
54525450 {#code_begin|test_err|values of type 'type' must be comptime known#}
......@@ -6891,7 +6889,7 @@ async fn func(y: *i32) void {
68916889 This function can only occur inside {#syntax#}@cImport{#endsyntax#}.
68926890 </p>
68936891 <p>
6894 This appends <code>#include <$path>\n</code> to the {#syntax#}c_import{#endsyntax#}
6892 This appends <code>#include &lt;$path&gt;\n</code> to the {#syntax#}c_import{#endsyntax#}
68956893 temporary buffer.
68966894 </p>
68976895 {#see_also|Import from C Header File|@cImport|@cDefine|@cUndef#}
......@@ -7015,7 +7013,6 @@ test "main" {
70157013 warn("Runtime in main, num1 = {}.\n", num1);
70167014}
70177015 {#code_end#}
7018 </p>
70197016 <p>
70207017 will ouput:
70217018 </p>
......@@ -8226,7 +8223,7 @@ test "integer truncation" {
82268223 <li>{#syntax#}noreturn{#endsyntax#}</li>
82278224 <li>{#syntax#}void{#endsyntax#}</li>
82288225 <li>{#syntax#}bool{#endsyntax#}</li>
8229 <li>{#link|Integers#}</li> - The maximum bit count for an integer type is {#syntax#}65535{#endsyntax#}.
8226 <li>{#link|Integers#} - The maximum bit count for an integer type is {#syntax#}65535{#endsyntax#}.</li>
82308227 <li>{#link|Floats#}</li>
82318228 <li>{#link|Pointers#}</li>
82328229 <li>{#syntax#}comptime_int{#endsyntax#}</li>
......@@ -8620,7 +8617,7 @@ pub fn build(b: *Builder) void {
86208617 {#header_close#}
86218618
86228619 {#header_open|Single Threaded Builds#}
8623 <p>Zig has a compile option <code>--single-threaded</code> which has the following effects:
8620 <p>Zig has a compile option <code>--single-threaded</code> which has the following effects:</p>
86248621 <ul>
86258622 <li>All {#link|Thread Local Variables#} are treated as {#link|Global Variables#}.</li>
86268623 <li>The overhead of {#link|Async Functions#} becomes equivalent to function call overhead.</li>
......@@ -8629,7 +8626,6 @@ pub fn build(b: *Builder) void {
86298626 For example {#syntax#}std.Mutex{#endsyntax#} becomes
86308627 an empty data structure and all of its functions become no-ops.</li>
86318628 </ul>
8632 </p>
86338629 {#header_close#}
86348630
86358631 {#header_open|Undefined Behavior#}
......@@ -9410,7 +9406,7 @@ test "string literal to constant slice" {
94109406 The location of memory allocated with {#syntax#}allocator.alloc{#endsyntax#} or
94119407 {#syntax#}allocator.create{#endsyntax#} is determined by the allocator's implementation.
94129408 </p>
9413 </p>TODO: thread local variables</p>
9409 <p>TODO: thread local variables</p>
94149410 {#header_close#}
94159411
94169412 {#header_open|Implementing an Allocator#}
lib/std/special/docs/index.html+2-2
......@@ -1,10 +1,10 @@
11<!doctype html>
2<html>
2<html lang="en">
33 <head>
44 <meta charset="utf-8">
55 <title>Documentation - Zig</title>
66 <link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAgklEQVR4AWMYWuD7EllJIM4G4g4g5oIJ/odhOJ8wToOxSTXgNxDHoeiBMfA4+wGShjyYOCkG/IGqWQziEzYAoUAeiF9D5U+DxEg14DRU7jWIT5IBIOdCxf+A+CQZAAoopEB7QJwBCBwHiip8UYmRdrAlDpIMgApwQZNnNii5Dq0MBgCxxycBnwEd+wAAAABJRU5ErkJggg==">
7 <style type="text/css">
7 <style>
88 :root {
99 font-size: 1em;
1010 --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";