]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: typo (#469)
authorPascal Germain <pascalgermain@me.com>
Mon, 3 May 2021 19:52:52 +0000 (21:52 +0200)
committerGitHub <noreply@github.com>
Mon, 3 May 2021 19:52:52 +0000 (21:52 +0200)
docs/core-concepts/getters.md

index 235e166f859dc7c3119640819bf6913153e7bb3d..411d70f778d71b3536f71fb367a8a223c4a51528 100644 (file)
@@ -30,7 +30,7 @@ export const useStore = defineStore({
     // the return type **must** be explicitly set
     doublePlusOne(): number {
       // autocompletion and typings for the whole store ✨
-      return this.state * 2 + 1
+      return this.counter * 2 + 1
     },
   },
 })