Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 9456757

Browse files
committed
docs: Add void method type to addHero function which returns null
1 parent 469c0a0 commit 9456757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/docs/_examples/template-syntax/dart/lib/little_tour.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import 'package:angular2/angular2.dart';
1616
class LittleTourComponent {
1717
List<String> heroes = ['Windstorm', 'Bombasto', 'Magneta', 'Tornado'];
1818

19-
addHero(InputElement newHero) {
19+
void addHero(InputElement newHero) {
2020
print(newHero.runtimeType);
2121
if (newHero.value != null && newHero.value.length > 0) {
2222
heroes.add(newHero.value);

0 commit comments

Comments
 (0)