From 1a1551bde841e6146aa0a81054862bf8118af316 Mon Sep 17 00:00:00 2001 From: Sujay Halder <32979854+know120@users.noreply.github.com> Date: Sun, 17 Mar 2024 08:10:06 +0530 Subject: [PATCH] Update dart.md Fixed wrong function call in asynchronous programming example code --- source/_posts/dart.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_posts/dart.md b/source/_posts/dart.md index 0693df4..6869657 100644 --- a/source/_posts/dart.md +++ b/source/_posts/dart.md @@ -492,7 +492,7 @@ Futures ------------ ### Async Await ```dart -// functionswhich are asynchronous: they return after setting up a possibly time-consuming operation +// functions which are asynchronous: they return after setting up a possibly time-consuming operation // The async and await keywords support asynchronous programming Future login() { @@ -505,7 +505,7 @@ Future login() { // Asynchronous main() async { print('Authenticating please wait...'); - print(await userName()); + print(await login()); } ```