diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-05-16 12:45:48 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-05-16 12:45:48 +0200 |
| commit | 50ca9ce15aaaeefc564da38c88bba82e73d1e570 (patch) | |
| tree | 81fb8abfaed2010bb2a863b0cd26cd551ad040f6 /docs/src/api/python/functions.md | |
| parent | 590ed0fb4a5d7edab4f3cae8342fd89b7d9c4491 (diff) | |
Docs: Fix typo in Python callback state leave
Diffstat (limited to 'docs/src/api/python/functions.md')
| -rw-r--r-- | docs/src/api/python/functions.md | 4 |
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. |
