diff options
author | Ersin Ertan <4809853+ersin-ertan@users.noreply.github.com> | 2023-12-14 09:51:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 15:51:54 +0100 |
commit | c5e7af574b9182b954c8e1057e65f0aaf45d8ee1 (patch) | |
tree | 519f4cb181bb7277b9c749b9fdc69434ceb2b7e7 /dart.html.markdown | |
parent | e50a0fbacca18d61cd5a38c044ed34a404b54405 (diff) |
Change function's function param to correct syntax (#4065)
Ref: https://dart.dev/guides/language/sound-problems
Co-authored-by: ven <vendethiel@hotmail.fr>
Diffstat (limited to 'dart.html.markdown')
-rw-r--r-- | dart.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dart.html.markdown b/dart.html.markdown index 282f183b..ab3c07d2 100644 --- a/dart.html.markdown +++ b/dart.html.markdown @@ -79,7 +79,8 @@ example1() { /// Anonymous functions don't include a name example2() { - nested1(fn) { + //// Explicit return type. + nested1(void Function() fn) { fn(); } nested1(() => print("Example2 nested 1")); |