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" {...@@ -2239,7 +2239,7 @@ test "switch inside function" {
2239 // On an OS other than fuchsia, block is not even analyzed,2239 // On an OS other than fuchsia, block is not even analyzed,
2240 // so this compile error is not triggered.2240 // so this compile error is not triggered.
2241 // On fuchsia this compile error would be triggered.2241 // On fuchsia this compile error would be triggered.
2242 @compileError("windows not supported");2242 @compileError("fuchsia not supported");
2243 },2243 },
2244 else => {},2244 else => {},
2245 }2245 }
...@@ -2303,13 +2303,13 @@ test "while continue" {...@@ -2303,13 +2303,13 @@ test "while continue" {
2303 {#code_begin|test|while#}2303 {#code_begin|test|while#}
2304const assert = @import("std").debug.assert;2304const assert = @import("std").debug.assert;
23052305
2306test "while loop continuation expression" {2306test "while loop continue expression" {
2307 var i: usize = 0;2307 var i: usize = 0;
2308 while (i < 10) : (i += 1) {}2308 while (i < 10) : (i += 1) {}
2309 assert(i == 10);2309 assert(i == 10);
2310}2310}
23112311
2312test "while loop continuation expression, more complicated" {2312test "while loop continue expression, more complicated" {
2313 var i1: usize = 1;2313 var i1: usize = 1;
2314 var j1: usize = 1;2314 var j1: usize = 1;
2315 while (i1 * j1 < 2000) : ({ i1 *= 2; j1 *= 3; }) {2315 while (i1 * j1 < 2000) : ({ i1 *= 2; j1 *= 3; }) {
...@@ -7118,10 +7118,16 @@ Environments:...@@ -7118,10 +7118,16 @@ Environments:
7118 opencl</code></pre>7118 opencl</code></pre>
7119 <p>7119 <p>
7120 The Zig Standard Library (<code>@import("std")</code>) has architecture, environment, and operating sytsem7120 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 supports7121 abstractions, and thus takes additional work to support more platforms.
7122 Linux x86_64. Not all standard library code requires operating system abstractions, however,7122 Not all standard library code requires operating system abstractions, however,
7123 so things such as generic data structures work an all above platforms.7123 so things such as generic data structures work an all above platforms.
7124 </p>7124 </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>
7125 {#header_close#}7131 {#header_close#}
7126 {#header_open|Style Guide#}7132 {#header_open|Style Guide#}
7127 <p>7133 <p>