summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/src/api/python/functions.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/api/python/functions.md b/docs/src/api/python/functions.md
index 1d9aef5..060a72f 100644
--- a/docs/src/api/python/functions.md
+++ b/docs/src/api/python/functions.md
@@ -93,9 +93,9 @@ def example_enter(old_state: str, data: str)
```
```python
# Where _eduvpn is the eduvpn.EduVPN class instance
-# This gets called when the New_State_Example state is left
+# This gets called when the Old_State_Example state is left
# new_state is then the new state
-@_eduvpn.event.on("New_State_Example", eduvpn.StateType.Leave)
+@_eduvpn.event.on("Old_State_Example", eduvpn.StateType.Leave)
def example_leave(new_state: str, data: str)
```
To show how this can be done in practice, we will give an example in the next section.