Skip to content

Commit

Permalink
Improve Result/unwrap docs
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Abril <[email protected]>
  • Loading branch information
imaqtkatt and developedby authored Aug 7, 2024
1 parent 7ef8ff9 commit 2a1f077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/builtins.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ type Result<A, B>:

Returns the inner value of `Result/Ok` or `Result/Err`.

If the types `A` and `B` are different, should only be used in type unsafe programs or when only one variant is guaranteed to happen.

```python
def Result/unwrap(result: Result<A, B>): A || B
```
Expand Down

0 comments on commit 2a1f077

Please sign in to comment.