diff --git a/docs/introduction/reducers.md b/docs/introduction/reducers.md index 1cd9309..c6f168d 100644 --- a/docs/introduction/reducers.md +++ b/docs/introduction/reducers.md @@ -30,7 +30,7 @@ local friendsReducer = function(state, action) newState[index] = friend end - for _, friend in ipairs(action.newFriends) + for _, friend in ipairs(action.newFriends) do table.insert(newState, friend) end @@ -83,4 +83,4 @@ local reducer = Rodux.combineReducers({ myPhoneNumber = phoneNumberReducer, myFriends = friendsReducer, }) -``` \ No newline at end of file +```