]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: bug in README example [skip ci] (#1101)
authorPhilippe Fontaine <phil.fontaine@hotmail.com>
Mon, 28 Feb 2022 16:40:59 +0000 (11:40 -0500)
committerGitHub <noreply@github.com>
Mon, 28 Feb 2022 16:40:59 +0000 (17:40 +0100)
README.md

index d1cdb8a99287431a0132d968d047966eeba82e61..04a52eec9f31d5fd6a2333cea0ed6a90df66ca34 100644 (file)
--- a/README.md
+++ b/README.md
@@ -158,7 +158,7 @@ export const useMainStore = defineStore('main', {
     doubleCount: (state) => state.counter * 2,
     // use getters in other getters
     doubleCountPlusOne(): number {
-      return this.doubleCount * 2 + 1
+      return this.doubleCount + 1
     },
   },
   // optional actions