From 50ca9ce15aaaeefc564da38c88bba82e73d1e570 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 16 May 2022 12:45:48 +0200 Subject: Docs: Fix typo in Python callback state leave --- docs/src/api/python/functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') 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. -- cgit v1.2.3