Skip to content

Commit 79c8086

Browse files
committed
docs(option/getUnsafe): more precise description of unsafe
1 parent f61e47e commit 79c8086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core__Option.resi

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ Option.getUnsafe(Some(3)) == 3
115115
Option.getUnsafe(None) // Raises an error
116116
```
117117

118-
## Exceptions
118+
## Improtant
119119

120-
- This is an unsafe operation, it assumes `value` is neither `None` nor `Some(None(...)))`
120+
This is an unsafe operation, it assumes `value` is neither `None`, `Some(None))`, `Some(Some(None))` etc.
121121
*/
122122
external getUnsafe: option<'a> => 'a = "%identity"
123123

0 commit comments

Comments
 (0)