Update dart.md

Fixed wrong function call in asynchronous programming example code
This commit is contained in:
Sujay Halder authored and GitHub committed 2024-03-17 08:10:06 +05:30
1 parent 3f7d8f9ccf
commit 1a1551bde8
1 file changed
+2 -2
+2 -2
View File
@@ -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<String> login() {
@@ -505,7 +505,7 @@ Future<String> login() {
// Asynchronous
main() async {
print('Authenticating please wait...');
print(await userName());
print(await login());
}
```