Skip to content

Commit 6a50cac

Browse files
authored
Update README.rst—cleaned up match example (#163)
1 parent 730ef99 commit 6a50cac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ And if you're using python version ``3.10`` or later, you can use the elegant ``
9797

9898
values = [(10, 0), (10, 5)]
9999
for a, b in values:
100-
divide_result = divide(a, b)
101-
match divide_result:
100+
match divide(a, b):
102101
case Ok(value):
103102
print(f"{a} // {b} == {value}")
104103
case Err(e):

0 commit comments

Comments
 (0)