Skip to content

Commit f61e47e

Browse files
committed
docs(option/getExn): more specific description
1 parent 90483c8 commit f61e47e

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
@@ -78,7 +78,7 @@ Option.forEach(None, x => Console.log(x)) // returns ()
7878
let forEach: (option<'a>, 'a => unit) => unit
7979

8080
/**
81-
`getExn(opt)` returns `value` if `opt` is `Some(value)`, otherwise raises an exception.
81+
`getExn(opt)` returns `value` if `opt` is `Some(value)`, raises `Not_found` if `None`.
8282

8383
```rescript
8484
Option.getExn(Some(3)) // 3
@@ -87,7 +87,7 @@ Option.getExn(None) /* Raises an Error */
8787

8888
## Exceptions
8989

90-
- Raises an error if `opt` is `None`
90+
- Raises `Not_found` if `opt` is `None`
9191
*/
9292
let getExn: option<'a> => 'a
9393

0 commit comments

Comments
 (0)