Skip to content

Commit ee77982

Browse files
jacekkarczmarczyknazarepiedady
authored andcommitted
fix: ref example (vuejs#2570)
1 parent 4cf2bca commit ee77982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/reactivity-core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Takes an inner value and returns a reactive and mutable ref object, which has a
3535
const count = ref(0)
3636
console.log(count.value) // 0
3737

38-
count.value++
38+
count.value = 1
3939
console.log(count.value) // 1
4040
```
4141

0 commit comments

Comments
 (0)