Skip to content

Commit 82efdd0

Browse files
Franciscktsn
authored andcommitted
Minor language fixes. (#818)
* Typo fix in "Mutations" section. Fixed via rephrasing slightly. * Typo fix in "Actions" section. * Typo fix in "Modules" section.
1 parent 9b47635 commit 82efdd0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/en/actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Actions
22

3-
Actions are similar to mutations, the difference being that:
3+
Actions are similar to mutations, the differences being that:
44

55
- Instead of mutating the state, actions commit mutations.
66
- Actions can contain arbitrary asynchronous operations.

docs/en/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ You can also remove a dynamically registered module with `store.unregisterModule
248248

249249
Sometimes we may need to create multiple instances of a module, for example:
250250

251-
- Creating multiple stores that uses the same module (e.g. To [avoid stateful singletons in the SSR](https://ssr.vuejs.org/en/structure.html#avoid-stateful-singletons) when the `runInNewContext` option is `false` or `'once'`);
251+
- Creating multiple stores that use the same module (e.g. To [avoid stateful singletons in the SSR](https://ssr.vuejs.org/en/structure.html#avoid-stateful-singletons) when the `runInNewContext` option is `false` or `'once'`);
252252
- Register the same module multiple times in the same store.
253253

254254
If we use a plain object to declare the state of the module, then that state object will be shared by reference and cause cross store/module state pollution when it's mutated.

docs/en/mutations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const store = new Vuex.Store({
1616
})
1717
```
1818

19-
You cannot directly call a mutation handler. The options here is more like event registration: "When a mutation with type `increment` is triggered, call this handler." To invoke a mutation handler, you need to call `store.commit` with its type:
19+
You cannot directly call a mutation handler. Think of it more like event registration: "When a mutation with type `increment` is triggered, call this handler." To invoke a mutation handler, you need to call `store.commit` with its type:
2020

2121
``` js
2222
store.commit('increment')

0 commit comments

Comments
 (0)