diff --git a/docs/usage/type-conversions.md b/docs/usage/type-conversions.md index f878183f5..67bc769a2 100644 --- a/docs/usage/type-conversions.md +++ b/docs/usage/type-conversions.md @@ -437,7 +437,7 @@ from pyodide import create_proxy from js import document def my_callback(): print("hi") -proxy = document.create_proxy(my_callback) +proxy = pyodide.create_proxy(my_callback) document.body.addEventListener("click", proxy) # ... # make sure to hold on to proxy