1
0
Fork 0
mirror of https://codeberg.org/ziglings/exercises.git synced 2025-06-08 10:07:01 +09:00
exercises/patches/patches/089_async6.patch

13 lines
493 B
Diff

--- exercises/089_async6.zig 2023-10-03 22:15:22.125574535 +0200
+++ answers/089_async6.zig 2023-10-05 20:04:07.242770376 +0200
@@ -41,8 +41,8 @@
var com_frame = async getPageTitle("http://example.com");
var org_frame = async getPageTitle("http://example.org");
- const com_title = com_frame;
- const org_title = org_frame;
+ const com_title = await com_frame;
+ const org_title = await org_frame;
print(".com: {s}, .org: {s}.\n", .{ com_title, org_title });
}