Skip to content

Commit 3d3e4e0

Browse files
reveltktsn
authored andcommitted
docs: update plugins.md (#1409)
Let's update the function's name to match the code sample
1 parent 08bd0d9 commit 3d3e4e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/guide/plugins.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const store = new Vuex.Store({
2525

2626
Plugins are not allowed to directly mutate state - similar to your components, they can only trigger changes by committing mutations.
2727

28-
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):
28+
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):
2929

3030
``` js
3131
export default function createWebSocketPlugin (socket) {

0 commit comments

Comments
 (0)