Skip to content

Commit 7677804

Browse files
authored
Merge pull request #2144 from jongar/patch-1
Code typo: returns => return
2 parents dbf370e + eb9cd19 commit 7677804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/introduction/CoreConcepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function todos(state = [], action) {
4545
case 'ADD_TODO':
4646
return state.concat([{ text: action.text, completed: false }]);
4747
case 'TOGGLE_TODO':
48-
returns state.map((todo, index) =>
48+
return state.map((todo, index) =>
4949
action.index === index ?
5050
{ text: todo.text, completed: !todo.completed } :
5151
todo

0 commit comments

Comments
 (0)