Skip to content

Commit

Permalink
Change left over Result to OkErr in the migrating guide (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonoro authored Apr 16, 2020
1 parent 1dd8dd4 commit 16f0443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ res2 = Err('nay')
```

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

```python
from result import Ok, Result
Expand Down

0 comments on commit 16f0443

Please sign in to comment.