]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: make the grammar of Chinese documents more fluent (#1798)
authorHankai Xia <xhk1995@gmail.com>
Tue, 15 Nov 2022 18:10:33 +0000 (02:10 +0800)
committerGitHub <noreply@github.com>
Tue, 15 Nov 2022 18:10:33 +0000 (19:10 +0100)
packages/docs/zh/core-concepts/state.md

index 636a9e5cfa4152401b98e182438fb8fed7e6a900..912d94f147614f24870064e8f08930518d43d833 100644 (file)
@@ -181,7 +181,7 @@ store.$patch({
 })
 ```
 
-不过,用这种语法的话,有些变更真的很难实现或者很耗时:任何集合的修改(例如,从数组中推送、移除、拼接一个元素)都需要你创建一个新的集合。因此,`$patch` 方法也接受一个函数来组合这种难以用补丁对象实现的变更。
+不过,用这种语法的话,有些变更真的很难实现或者很耗时:任何集合的修改(例如,向数组中添加、移除一个元素或是做 `splice` 操作)都需要你创建一个新的集合。因此,`$patch` 方法也接受一个函数来组合这种难以用补丁对象实现的变更。
 
 ```js
 store.$patch((state) => {