summaryrefslogtreecommitdiffhomepage
path: root/dart.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'dart.html.markdown')
-rw-r--r--dart.html.markdown6
1 files changed, 2 insertions, 4 deletions
diff --git a/dart.html.markdown b/dart.html.markdown
index b215474a..37f207f5 100644
--- a/dart.html.markdown
+++ b/dart.html.markdown
@@ -77,13 +77,11 @@ example1() {
nested1();
}
-/// Anonymous functions don't include a name but can take number of arguments
+/// Anonymous functions don't include a name
example2() {
- //// Explicit return type.
- nested1(Function<void> fn) {
+ nested1(fn) {
fn();
}
-
nested1(() => print("Example2 nested 1"));
}