Skip to content

Commit 5500de5

Browse files
AmaranthineCodicesLPGhatguy
authored andcommitted
fixed incorrect argument ordering in reducer.md (#41)
1 parent 862f1c7 commit 5500de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/introduction/reducers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ end
4545
sub-reducers where each sub-reducer is responsible for one portion of the
4646
overall state.
4747
]]
48-
local reducer = function(action, state)
48+
local reducer = function(state, action)
4949
return {
5050
myPhoneNumber = phoneNumberReducer(state.myPhoneNumber, action),
5151
myFriends = friendsReducer(state.myFriends, action),

0 commit comments

Comments
 (0)