| ... | ... | @@ -2239,7 +2239,7 @@ test "switch inside function" { |
| 2239 | 2239 | // On an OS other than fuchsia, block is not even analyzed, |
| 2240 | 2240 | // so this compile error is not triggered. |
| 2241 | 2241 | // On fuchsia this compile error would be triggered. |
| 2242 | | @compileError("windows not supported"); |
| 2242 | @compileError("fuchsia not supported"); |
| 2243 | 2243 | }, |
| 2244 | 2244 | else => {}, |
| 2245 | 2245 | } |
| ... | ... | @@ -2303,13 +2303,13 @@ test "while continue" { |
| 2303 | 2303 | {#code_begin|test|while#} |
| 2304 | 2304 | const assert = @import("std").debug.assert; |
| 2305 | 2305 | |
| 2306 | | test "while loop continuation expression" { |
| 2306 | test "while loop continue expression" { |
| 2307 | 2307 | var i: usize = 0; |
| 2308 | 2308 | while (i < 10) : (i += 1) {} |
| 2309 | 2309 | assert(i == 10); |
| 2310 | 2310 | } |
| 2311 | 2311 | |
| 2312 | | test "while loop continuation expression, more complicated" { |
| 2312 | test "while loop continue expression, more complicated" { |
| 2313 | 2313 | var i1: usize = 1; |
| 2314 | 2314 | var j1: usize = 1; |
| 2315 | 2315 | while (i1 * j1 < 2000) : ({ i1 *= 2; j1 *= 3; }) { |
| ... | ... | @@ -7118,10 +7118,16 @@ Environments: |
| 7118 | 7118 | opencl</code></pre> |
| 7119 | 7119 | <p> |
| 7120 | 7120 | 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, |
| 7123 | 7123 | so things such as generic data structures work an all above platforms. |
| 7124 | 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 | 7131 | {#header_close#} |
| 7126 | 7132 | {#header_open|Style Guide#} |
| 7127 | 7133 | <p> |