Skip to content

Commit 16f0443

Browse files
authored
Change left over Result to OkErr in the migrating guide (rustedpy#30)
1 parent 1dd8dd4 commit 16f0443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MIGRATING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ res2 = Err('nay')
2222
```
2323

2424
2\. Result is now a Union type between `Ok[T]` and `Err[E]`. As such, you cannot use `isinstance(res, Result)` anymore.
25-
These should be replaced by `isinstance(res, Result)`. As an example, the following code:
25+
These should be replaced by `isinstance(res, OkErr)`. As an example, the following code:
2626

2727
```python
2828
from result import Ok, Result

0 commit comments

Comments
 (0)