summaryrefslogtreecommitdiff
path: root/docs/src/api/python
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-16 12:45:48 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-16 12:45:48 +0200
commit50ca9ce15aaaeefc564da38c88bba82e73d1e570 (patch)
tree81fb8abfaed2010bb2a863b0cd26cd551ad040f6 /docs/src/api/python
parent590ed0fb4a5d7edab4f3cae8342fd89b7d9c4491 (diff)
Docs: Fix typo in Python callback state leave
Diffstat (limited to 'docs/src/api/python')
-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.