Skip to content

Commit

Permalink
Update README.rst—cleaned up match example
Browse files Browse the repository at this point in the history
  • Loading branch information
dogweather authored Dec 19, 2023
1 parent 730ef99 commit 841e85e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ And if you're using python version ``3.10`` or later, you can use the elegant ``

values = [(10, 0), (10, 5)]
for a, b in values:
divide_result = divide(a, b)
match divide_result:
match divide(a, b):
case Ok(value):
print(f"{a} // {b} == {value}")
case Err(e):
Expand Down

0 comments on commit 841e85e

Please sign in to comment.