Skip to content

Commit 18cac8a

Browse files
Change a variable name in the readme example in order to avoid some confusion
1 parent b5a8092 commit 18cac8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ const vm = new Vue({
125125
},
126126
asyncComputed: {
127127
sum () {
128-
const sum = this.x + this.y
128+
const total = this.x + this.y
129129
return new Promise(resolve =>
130-
setTimeout(() => resolve(sum), 1000)
130+
setTimeout(() => resolve(total), 1000)
131131
)
132132
}
133133
}

0 commit comments

Comments
 (0)