Skip to content

Commit 9fffb0b

Browse files
committed
docs(zh): apply suggestions
1 parent 9d1a9c5 commit 9fffb0b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

docs/guide/mutations.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ import { SOME_MUTATION } from './mutation-types'
9696
const store = createStore({
9797
state: { ... },
9898
mutations: {
99-
// we can use the ES2015 computed property name feature to use a constant as the function name
99+
// we can use the ES2015 computed property name feature
100+
// to use a constant as the function name
100101
[SOME_MUTATION] (state) {
101102
// mutate state
102103
}

docs/zh/guide/getters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const store = createStore({
4040

4141
## 通过属性访问
4242

43-
getter 会暴露为 `store.getters` 对象,你可以以属性的形式访问这些值:
43+
Getter 会暴露为 `store.getters` 对象,你可以以属性的形式访问这些值:
4444

4545
``` js
4646
store.getters.doneTodos // -> [{ id: 1, text: '...', done: true }]

docs/zh/guide/mutations.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Mutations
1+
# Mutation
22

33
<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/ckMZp4HN" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a></div>
44

@@ -96,7 +96,8 @@ import { SOME_MUTATION } from './mutation-types'
9696
const store = createStore({
9797
state: { ... },
9898
mutations: {
99-
// 我们可以使用 ES2015 风格的计算属性命名功能来使用一个常量作为函数名
99+
// 我们可以使用 ES2015 风格的计算属性命名功能
100+
// 来使用一个常量作为函数名
100101
[SOME_MUTATION] (state) {
101102
// 修改 state
102103
}

docs/zh/guide/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describe('actions', () => {
127127
})
128128
```
129129

130-
如果在测试环境下有可用的 spies (比如通过 [Sinon.JS](http://sinonjs.org/)),你可以使用它们替换辅助函数 `testAction`
130+
如果在测试环境下有可用的 spy (比如通过 [Sinon.JS](http://sinonjs.org/)),你可以使用它们替换辅助函数 `testAction`
131131

132132
``` js
133133
describe('actions', () => {

0 commit comments

Comments
 (0)