Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: fix typo (#4724)

greenpine82bf2fcf135ba0
diff --git a/docs/guides/state.md b/docs/guides/state.md
index fad319e6fe..367647f271 100644
--- a/docs/guides/state.md
+++ b/docs/guides/state.md
@@ -224,7 +224,7 @@ x_plus_one = mo.ui.number(
1,
11,
value=get_x() + 1,
- on_change=lambda v: set_x_state(v - 1),
+ on_change=lambda v: set_x(v - 1),
label="$x + 1$:",
)
```