Skip to content

Commit 6c5726a

Browse files
committed
update
1 parent 079b73a commit 6c5726a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ It is also a convention to name the function ``__default__``, for the same reaso
9696

9797
And now, we've reached the end. As you know, states, in Python, using this implementation, are actually classes. Therefore, they cannot be executed on their own. What is nice about Python, is that there is a function that does that for us. Remember that ``enable`` that was imported? We're gonna use that.
9898
```py
99-
enable(mySwitch, 2)
99+
enable(mySwitch, "fdk")
100100
```
101101
The first argument shall be the switch itself, aka the class, and the second argument is the value to be compared to by the switch.
102102

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ def case2(ctx):
1616
def __default__(ctx):
1717
print("Default case.")
1818
return ctx
19-
enable(mySwitch, 6)
19+
enable(mySwitch, 2)

0 commit comments

Comments
 (0)