Skip to content

Commit 3c7b042

Browse files
committed
docs(option/getExn): more specific description
1 parent a7d4bce commit 3c7b042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core__Option.resi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Option.forEach(None, x => Console.log(x)) // returns ()
9090
let forEach: (option<'a>, 'a => unit) => unit
9191

9292
/**
93-
`getExn(opt)` raises an Error in case `None` is provided.
93+
`getExn(opt)` returns `value` is `Some(value)`, raises `Not_found` if `None`.
9494
9595
```rescript
9696
Option.getExn(Some(3)) // 3
@@ -99,7 +99,7 @@ Option.getExn(None) /* Raises an Error */
9999
100100
## Exceptions
101101
102-
- Raises an error if `opt` is `None`
102+
- Raises `Not_found` if `opt` is `None`
103103
*/
104104
let getExn: option<'a> => 'a
105105

0 commit comments

Comments
 (0)