1
0
Эх сурвалжийг харах

fixed unclosed parenthesis (#2536)

Elesei 3 жил өмнө
parent
commit
cd715ed283

+ 1 - 1
packages/docs/src/en/magics/watch.md

@@ -53,7 +53,7 @@ When the `<button>` is pressed, `foo.bar` will be set to "bob", and "{bar: 'bob'
 
 ```alpine
 <!-- 🚫 Infinite loop -->
-<div x-data="{ foo: { bar: 'baz', bob: 'lob' }}" x-init="$watch('foo', value => foo.bob = foo.bar">
+<div x-data="{ foo: { bar: 'baz', bob: 'lob' }}" x-init="$watch('foo', value => foo.bob = foo.bar)">
     <button @click="foo.bar = 'bob'">Update</button>
 </div>
 ```