Skip to content

Commit

Permalink
change "INCREMENT" to "increment" (vuejs#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengxiaotao authored and ktsn committed Oct 6, 2016
1 parent cca2c4b commit 17d4f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mutations: {
}
```
``` js
store.commit('INCREMENT', 10)
store.commit('increment', 10)
```

In most cases, the payload should be an object so that it can contain multiple fields, and the recorded mutation will also be more descriptive:
Expand Down Expand Up @@ -69,7 +69,7 @@ When using object-style commit, the entire object will be passed as the payload

``` js
mutations: {
INCREMENT (state, payload) {
increment (state, payload) {
state.count += payload.amount
}
}
Expand Down

0 comments on commit 17d4f01

Please sign in to comment.