mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-01-14 10:46:30 +00:00
13 lines
485 B
Diff
13 lines
485 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");
|
|
|
|
- var com_title = com_frame;
|
|
- var org_title = org_frame;
|
|
+ var com_title = await com_frame;
|
|
+ var org_title = await org_frame;
|
|
|
|
print(".com: {s}, .org: {s}.\n", .{ com_title, org_title });
|
|
}
|