Skip to content

Commit 69d6965

Browse files
authored
Merge pull request #1748 from LukerSpringtree/master
2 parents 2964b91 + 08717ba commit 69d6965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/createReducer.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@ const reducer = createReducer(0, (builder) => {
271271
builder
272272
.addCase('increment', (state) => state + 1)
273273
.addMatcher(
274-
(action) => action.startsWith('i'),
274+
(action) => action.type.startsWith('i'),
275275
(state) => state * 5
276276
)
277277
.addMatcher(
278-
(action) => action.endsWith('t'),
278+
(action) => action.type.endsWith('t'),
279279
(state) => state + 2
280280
)
281281
})

0 commit comments

Comments
 (0)