Skip to content

Commit

Permalink
Merge pull request #129 from cdrini/fix/docs-not-updating
Browse files Browse the repository at this point in the history
Fix example in README not working
  • Loading branch information
cdrini committed Nov 19, 2023
2 parents e2ea953 + 6e871ec commit e660e99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ Alternately, you can link it directly from a CDN:
},
asyncComputed: {
async sum () {
const total = this.x + this.y
await new Promise(resolve => setTimeout(resolve, 1000))
return this.x + this.y
return total
}
}
})
Expand Down Expand Up @@ -164,8 +165,9 @@ export default {
the sum of the values to which you set vm.x and vm.y the previous second.
*/
async sum () {
const total = this.x + this.y
await new Promise(resolve => setTimeout(resolve, 1000))
return this.x + this.y
return total
}
}
}
Expand Down

0 comments on commit e660e99

Please sign in to comment.