Skip to content

Commit e2f0ed8

Browse files
authored
Merge pull request #80 from tfriem/master
Fix typo in reducer example
2 parents 8b5a67c + f839da7 commit e2f0ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: doc/basics/reducers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ I can define a simple reducer function as follows:
3232

3333
```dart
3434
void counterReducer(App prevState, Action<dynamic> action, AppBuilder builder) {
35-
if (action.name == AppActionNames.increment.name)
35+
if (action.name == AppActionsNames.increment.name)
3636
builder.count += action.payload as int;
37-
else if (action.name == AppActionNames.decrement.name)
37+
else if (action.name == AppActionsNames.decrement.name)
3838
builder.count -= action.payload as int;
3939
}
4040
```

0 commit comments

Comments
 (0)