瀏覽代碼

[en] typo (#1046)

勾三股四 7 年之前
父節點
當前提交
5bb3dad2b8
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      docs/en/api.md

+ 6 - 6
docs/en/api.md

@@ -34,12 +34,12 @@ const store = new Vuex.Store({ ...options })
 
     ``` js
     {
-      state,      // same as store.state, or local state if in modules
-      rootState,  // same as store.state, only in modules
-      commit,     // same as store.commit
-      dispatch,   // same as store.dispatch
-      getters,    // same as store.getters, or local getters if in modules
-      rootGetters // same as store.getters, only in modules
+      state,      // same as `store.state`, or local state if in modules
+      rootState,  // same as `store.state`, only in modules
+      commit,     // same as `store.commit`
+      dispatch,   // same as `store.dispatch`
+      getters,    // same as `store.getters`, or local getters if in modules
+      rootGetters // same as `store.getters`, only in modules
     }
     ```