Skip to content

Commit ab67124

Browse files
committed
Merge pull request #2 from acdlite/patch-1
Spelling fix
2 parents c2a870a + 188b3b7 commit ab67124

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ import {
8787

8888
const initialState = { counter: 0 };
8989

90-
function incremenent({ counter }) {
90+
function increment({ counter }) {
9191
return { counter: counter + 1 };
9292
}
9393

94-
function decremenent({ counter }) {
94+
function decrement({ counter }) {
9595
return { counter: counter - 1 };
9696
}
9797

@@ -100,9 +100,9 @@ export default function counterStore(state = initialState, action) {
100100
// that returns the new state when an action comes
101101
switch (action.type) {
102102
case INCREMENT_COUNTER:
103-
return incremenent(state, action);
103+
return increment(state, action);
104104
case DECREMENT_COUNTER:
105-
return decremenent(state, action);
105+
return decrement(state, action);
106106
default:
107107
return state;
108108
}

0 commit comments

Comments
 (0)