Skip to content

Commit 05ce46e

Browse files
author
Tomek Wisnewski
authored
Update getters code example to match description above (#1127)
1 parent d4a9e2f commit 05ce46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docs/core-concepts/getters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const useStore = defineStore('main', {
3333
// the return type **must** be explicitly set
3434
doublePlusOne(): number {
3535
// autocompletion and typings for the whole store ✨
36-
return this.counter * 2 + 1
36+
return this.doubleCount + 1
3737
},
3838
},
3939
})

0 commit comments

Comments
 (0)