diff options
| author | kristopher tate <kt@connectfree.co.jp> | 2018-08-02 17:45:35 +0900 |
|---|---|---|
| committer | kristopher tate <kt@connectfree.co.jp> | 2018-08-02 17:45:35 +0900 |
| commit | 915e321a2334b32ae398ec669d059f43fc2a8774 (patch) | |
| tree | a89e208c07d232ed083fb9bded72a72c8d4f1685 /doc | |
| parent | 5de92425d57338ba6c94a90360f96eb2fa8efdda (diff) | |
| download | zig-915e321a2334b32ae398ec669d059f43fc2a8774.tar.gz zig-915e321a2334b32ae398ec669d059f43fc2a8774.zip | |
doc/langref.html.in: update suspend example with @handle();
Tracking Issue #1296 ;
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 58b63f7f40..92fae2347d 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -4733,8 +4733,8 @@ test "resume from suspend" { std.debug.assert(my_result == 2); } async fn testResumeFromSuspend(my_result: *i32) void { - suspend |p| { - resume p; + suspend { + resume @handle(); } my_result.* += 1; suspend; |
