Skip to content

Commit 689c800

Browse files
authored
Merge pull request reduxjs#2463 from taehwanno/docs-change-array-reduce
Fix a typo in Splitting Reducer Logic docs
2 parents 2d229f0 + 4155297 commit 689c800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/recipes/reducers/SplittingReducerLogic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ These new functions would typically fall into one of three categories:
1313

1414
For clarity, these terms will be used to distinguish between different types of functions and different use cases:
1515

16-
- ***reducer***: any function with the signature `(state, action) -> newState` (ie, any function that *could* be used as an argument to `Array.reduce`)
16+
- ***reducer***: any function with the signature `(state, action) -> newState` (ie, any function that *could* be used as an argument to `Array.prototype.reduce`)
1717
- ***root reducer***: the reducer function that is actually passed as the first argument to `createStore`. This is the only part of the reducer logic that _must_ have the `(state, action) -> newState` signature.
1818
- ***slice reducer***: a reducer that is being used to handle updates to one specific slice of the state tree, usually done by passing it to `combineReducers`
1919
- ***case function***: a function that is being used to handle the update logic for a specific action. This may actually be a reducer function, or it may require other parameters to do its work properly.

0 commit comments

Comments
 (0)