Skip to content

Commit 93742d9

Browse files
committed
rewording
1 parent 0f9e6f4 commit 93742d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/reactivity.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ If you click the buttons in the above example it will show the current count. Wh
167167

168168
Watch methods are another superpower.
169169
Textual will call watch methods when reactive attributes are modified.
170-
Watch methods begin with `watch_` followed by the name of the attribute.
171-
If the watch method accepts a positional argument, it will be called with the new assigned value.
172-
If the watch method accepts *two* positional arguments, it will be called with both the *old* value and the *new* value.
170+
Watch method names begin with `watch_` followed by the name of the attribute, and should accept one or two arguments.
171+
If the method accepts a single argument, it will be called with the new assigned value.
172+
If the method accepts *two* positional arguments, it will be called with both the *old* value and the *new* value.
173173

174174
The following app will display any color you type in to the input. Try it with a valid color in Textual CSS. For example `"darkorchid"` or `"#52de44"`.
175175

0 commit comments

Comments
 (0)