Skip to content

Commit 80d2eb5

Browse files
Add a clarifying comment to a watcher example (vuejs#2162)
1 parent 1c7055e commit 80d2eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/essentials/watchers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ We can force a watcher's callback to be executed immediately by passing the `imm
254254

255255
```js
256256
watch(source, (newValue, oldValue) => {
257-
// ...
257+
// executed immediately, then again when `source` changes
258258
}, { immediate: true })
259259
```
260260

0 commit comments

Comments
 (0)