Explorar o código

Update modules.md (#368)

Blake Newman %!s(int64=8) %!d(string=hai) anos
pai
achega
448866a835
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      docs/en/modules.md

+ 2 - 5
docs/en/modules.md

@@ -31,18 +31,15 @@ store.state.b // -> moduleB's state
 
 ### Module Local State
 
-Inside a module's mutations and getters, The first argument received will be **the module's local state** instead of root state:
+Inside a module's mutations and getters, The first argument received will be **the module's local state**.
 
 ``` js
 const moduleA = {
   state: { count: 0 },
   mutations: {
-    increment: (state, rootState) {
+    increment: (state) {
       // state is the local module state
       state.count++
-
-      // rootState is passed as the second argument, but you should not
-      // mutate it from within a module.
     }
   },