浏览代码

docs: update plugins.md (#1409)

Let's update the function's name to match the code sample
Roy Revelt 6 年之前
父节点
当前提交
3d3e4e061c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/guide/plugins.md

+ 1 - 1
docs/guide/plugins.md

@@ -25,7 +25,7 @@ const store = new Vuex.Store({
 
 Plugins are not allowed to directly mutate state - similar to your components, they can only trigger changes by committing mutations.
 
-By committing mutations, a plugin can be used to sync a data source to the store. For example, to sync a websocket data source to the store (this is just a contrived example, in reality the `createPlugin` function can take some additional options for more complex tasks):
+By committing mutations, a plugin can be used to sync a data source to the store. For example, to sync a websocket data source to the store (this is just a contrived example, in reality the `createWebSocketPlugin` function can take some additional options for more complex tasks):
 
 ``` js
 export default function createWebSocketPlugin (socket) {