Skip to content

Commit 8d3ed93

Browse files
authored
Update the JSDoc so IDEs don't complain.
1 parent 38df33b commit 8d3ed93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default function createStore(reducer, preloadedState, enhancer) {
224224
* implement a hot reloading mechanism for Redux.
225225
*
226226
* @param {Function} nextReducer The reducer for the store to use instead.
227-
* @returns {void}
227+
* @returns {Store} The same store instance with a new reducer in place.
228228
*/
229229
function replaceReducer(nextReducer) {
230230
if (typeof nextReducer !== 'function') {

0 commit comments

Comments
 (0)