Skip to content

Commit df03f34

Browse files
Automatic update
1 parent 67da8c3 commit df03f34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Project is tested on zig version 0.14.0-dev.3298+6fe1993d8
2626
## Example
2727

2828
```zig
29+
const builtin = @import("builtin");
2930
const std = @import("std");
3031
const aio = @import("aio");
3132
const coro = @import("coro");
@@ -109,6 +110,7 @@ fn client(startup: *coro.ResetEvent) !void {
109110
}
110111
111112
pub fn main() !void {
113+
if (builtin.target.os.tag == .wasi) return error.UnsupportedPlatform;
112114
// var mem: [4096 * 1024]u8 = undefined;
113115
// var fba = std.heap.FixedBufferAllocator.init(&mem);
114116
var gpa: std.heap.GeneralPurposeAllocator(.{}) = .{};

0 commit comments

Comments
 (0)