Skip to content

Commit

Permalink
[Dart/en] Fixed error in example2 (adambard#4035)
Browse files Browse the repository at this point in the history
* [Dart/en] Fixed example2

* [Dart/en] Simplify example

Co-authored-by: Anton Dorozhkin <[email protected]>
  • Loading branch information
AntonTrekov and Anton Dorozhkin authored Jan 3, 2022
1 parent f6d6a9c commit 625f149
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dart.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down

0 comments on commit 625f149

Please sign in to comment.