Skip to content

Commit

Permalink
Fix code typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiqrahim committed Nov 21, 2016
1 parent 623f623 commit 2f84abc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/en/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ A more practical example of real-world actions would be an action to checkout a

``` js
actions: {
checkout ({ commit, state }, payload) {
checkout ({ commit, state }, products) {
// save the items currently in the cart
const savedCartItems = [...state.cart.added]
// send out checkout request, and optimistically
Expand Down
2 changes: 1 addition & 1 deletion docs/fr/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Un exemple plus pratique d'une application du monde réel serait une action pour

``` js
actions: {
checkout ({ commit, state }, payload) {
checkout ({ commit, state }, products) {
// sauvegarder les articles actuellement dans le panier
const savedCartItems = [...state.cart.added]
// envoyer la requête de checkout, et vider le panier
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ store.dispatch({

``` js
actions: {
checkout ({ commit, state }, payload) {
checkout ({ commit, state }, products) {
// сохраним находящиеся на данный момент в корзине товары
const savedCartItems = [...state.cart.added]
// инициируем запрос и "оптимистично" очистим корзину
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ store.dispatch({

``` js
actions: {
checkout ({ commit, state }, payload) {
checkout ({ commit, state }, products) {
// 把当前购物车的物品备份起来
const savedCartItems = [...state.cart.added]
// 发出结账请求,然后乐观地清空购物车
Expand Down

0 comments on commit 2f84abc

Please sign in to comment.