diff --git a/docs/source/guides/adding-interactivity/components-with-state/_examples/adding_state_variable/main.py b/docs/source/guides/adding-interactivity/components-with-state/_examples/adding_state_variable/main.py index 5a96d2f03..724831f89 100644 --- a/docs/source/guides/adding-interactivity/components-with-state/_examples/adding_state_variable/main.py +++ b/docs/source/guides/adding-interactivity/components-with-state/_examples/adding_state_variable/main.py @@ -27,7 +27,7 @@ def handle_click(event): return html.div( html.button({"onClick": handle_click}, "Next"), html.h2(name, " by ", artist), - html.p(f"({bounded_index + 1} or {len(sculpture_data)})"), + html.p(f"({bounded_index + 1} of {len(sculpture_data)})"), html.img({"src": url, "alt": alt, "style": {"height": "200px"}}), html.p(description), ) diff --git a/docs/source/guides/creating-interfaces/your-first-components/_examples/good_conditional_todo_list.py b/docs/source/guides/creating-interfaces/your-first-components/_examples/good_conditional_todo_list.py index 64d6f6813..f01753d40 100644 --- a/docs/source/guides/creating-interfaces/your-first-components/_examples/good_conditional_todo_list.py +++ b/docs/source/guides/creating-interfaces/your-first-components/_examples/good_conditional_todo_list.py @@ -3,7 +3,7 @@ @component def Item(name, done): - return html.li(name, "" if done else " ✔") + return html.li(name, " ✔" if done else "") @component