From 792535bf26819f71db9a0c983343f0adbd3906f0 Mon Sep 17 00:00:00 2001 From: AlternativeMaw <126386296+AlternativeMaw@users.noreply.github.com> Date: Sun, 19 Mar 2023 16:09:53 +0600 Subject: [PATCH] fixed a missing 'do' in one of the code examples --- docs/introduction/reducers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +```