Skip to content

Commit 493535f

Browse files
authored
docs: fix syntax format (vuejs#1452)
1 parent 34ec584 commit 493535f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/essentials/computed.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default {
213213
// setter
214214
set(newValue) {
215215
// Note: we are using destructuring assignment syntax here.
216-
;[this.firstName, this.lastName] = newValue.split(' ')
216+
[this.firstName, this.lastName] = newValue.split(' ')
217217
}
218218
}
219219
}
@@ -241,7 +241,7 @@ const fullName = computed({
241241
// setter
242242
set(newValue) {
243243
// Note: we are using destructuring assignment syntax here.
244-
;[firstName.value, lastName.value] = newValue.split(' ')
244+
[firstName.value, lastName.value] = newValue.split(' ')
245245
}
246246
})
247247
</script>

0 commit comments

Comments
 (0)