089_async6.patch 485 B

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