Skip to content

Commit 11275db

Browse files
fix: ref example
1 parent def9358 commit 11275db

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)