Skip to content

Commit 894d052

Browse files
glennslcknitt
andcommitted
docs(option): fix embarassing typos
Co-authored-by: Christoph Knittel <[email protected]>
1 parent c7d0918 commit 894d052

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Core__Option.resi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let someString: option<string> = Some("hello")
4040
*/
4141

4242
/**
43-
`flat(value)` flattens a nested `option` value to a single level..
43+
`flat(value)` flattens a nested `option` value to a single level.
4444

4545
## Examples
4646

@@ -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` is `Some(value)`, raises `Not_found` if `None`.
81+
`getExn(opt)` returns `value` if `Some(value)`, raises `Not_found` if `None`.
8282

8383
```rescript
8484
Option.getExn(Some(3)) // 3
@@ -115,7 +115,7 @@ Option.getUnsafe(Some(3)) == 3
115115
Option.getUnsafe(None) // Raises an error
116116
```
117117

118-
## Improtant
118+
## Important
119119

120120
This is an unsafe operation, it assumes `value` is neither `None`, `Some(None))`, `Some(Some(None))` etc.
121121
*/

0 commit comments

Comments
 (0)