Skip to content

Commit 95e9ce8

Browse files
committed
update list rendering caveats to make it clearer that splice should be used instead of setting a new array length
1 parent a6c3891 commit 95e9ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ Vue.set(example1.items, indexOfItem, newValue)
420420
example1.items.splice(indexOfItem, 1, newValue)
421421
```
422422

423-
To deal with caveat 2, you can also use `splice`:
423+
To deal with caveat 2, you can use `splice`:
424424

425425
``` js
426426
example1.items.splice(newLength)

0 commit comments

Comments
 (0)