Skip to content

Commit 5936eef

Browse files
authored
docs(computed): remove semicolons (#3117)
1 parent 8ce9c23 commit 5936eef

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/guide/essentials/computed.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ export default {
281281
// instead until count is less or equal to 3
282282
alwaysSmall(previous) {
283283
if (this.count <= 3) {
284-
return this.count;
284+
return this.count
285285
}
286286

287-
return previous;
287+
return previous
288288
}
289289
}
290290
}
@@ -304,10 +304,10 @@ const count = ref(2)
304304
// instead until count is less or equal to 3
305305
const alwaysSmall = computed((previous) => {
306306
if (count.value <= 3) {
307-
return count.value;
307+
return count.value
308308
}
309309
310-
return previous;
310+
return previous
311311
})
312312
</script>
313313
```
@@ -328,13 +328,13 @@ export default {
328328
alwaysSmall: {
329329
get(previous) {
330330
if (this.count <= 3) {
331-
return this.count;
331+
return this.count
332332
}
333333

334334
return previous;
335335
},
336336
set(newValue) {
337-
this.count = newValue * 2;
337+
this.count = newValue * 2
338338
}
339339
}
340340
}
@@ -353,13 +353,13 @@ const count = ref(2)
353353
const alwaysSmall = computed({
354354
get(previous) {
355355
if (count.value <= 3) {
356-
return count.value;
356+
return count.value
357357
}
358358
359-
return previous;
359+
return previous
360360
},
361361
set(newValue) {
362-
count.value = newValue * 2;
362+
count.value = newValue * 2
363363
}
364364
})
365365
</script>

0 commit comments

Comments
 (0)