authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-14 11:52:48-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-14 11:53:51-04:00
log29c756abba20921b76ba0a2611dd56f0123fd68c
tree40873fc72c95e704b0e0deb2d4fe24f36e2f12a7
parentbf441ed2448fdf4c5f12282ca448a62c5b71d26e

docs: correct some misinformation


1 files changed, 11 insertions(+), 5 deletions(-)

doc/langref.html.in+11-5
......@@ -2239,7 +2239,7 @@ test "switch inside function" {
22392239 // On an OS other than fuchsia, block is not even analyzed,
22402240 // so this compile error is not triggered.
22412241 // On fuchsia this compile error would be triggered.
2242 @compileError("windows not supported");
2242 @compileError("fuchsia not supported");
22432243 },
22442244 else => {},
22452245 }
......@@ -2303,13 +2303,13 @@ test "while continue" {
23032303 {#code_begin|test|while#}
23042304const assert = @import("std").debug.assert;
23052305
2306test "while loop continuation expression" {
2306test "while loop continue expression" {
23072307 var i: usize = 0;
23082308 while (i < 10) : (i += 1) {}
23092309 assert(i == 10);
23102310}
23112311
2312test "while loop continuation expression, more complicated" {
2312test "while loop continue expression, more complicated" {
23132313 var i1: usize = 1;
23142314 var j1: usize = 1;
23152315 while (i1 * j1 < 2000) : ({ i1 *= 2; j1 *= 3; }) {
......@@ -7118,10 +7118,16 @@ Environments:
71187118 opencl</code></pre>
71197119 <p>
71207120 The Zig Standard Library (<code>@import("std")</code>) has architecture, environment, and operating sytsem
7121 abstractions, and thus takes additional work to support more platforms. It currently supports
7122 Linux x86_64. Not all standard library code requires operating system abstractions, however,
7121 abstractions, and thus takes additional work to support more platforms.
7122 Not all standard library code requires operating system abstractions, however,
71237123 so things such as generic data structures work an all above platforms.
71247124 </p>
7125 <p>The current list of targets supported by the Zig Standard Library is:</p>
7126 <ul>
7127 <li>Linux x86_64</li>
7128 <li>Windows x86_64</li>
7129 <li>MacOS x86_64</li>
7130 </ul>
71257131 {#header_close#}
71267132 {#header_open|Style Guide#}
71277133 <p>