Skip to content

Commit 4e2c0d8

Browse files
glennslcknitt
andauthored
docs(option): fix embarassing typos
Co-authored-by: Christoph Knittel <[email protected]>
1 parent a47fef5 commit 4e2c0d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Core__Option.resi

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Option.some("foo") // Some("foo")
5252
let some: 'a => option<'a>
5353

5454
/**
55-
`flat(value)` flattens a nested `option` value to a single level..
55+
`flat(value)` flattens a nested `option` value to a single level.
5656

5757
## Examples
5858

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

9595
```rescript
9696
Option.getExn(Some(3)) // 3
@@ -127,7 +127,7 @@ Option.getUnsafe(Some(3)) == 3
127127
Option.getUnsafe(None) // Raises an error
128128
```
129129

130-
## Improtant
130+
## Important
131131

132132
This is an unsafe operation, it assumes `value` is neither `None`, `Some(None))`, `Some(Some(None))` etc.
133133
*/
@@ -306,7 +306,7 @@ cmp(None, None, clockCompare) // 0
306306
let cmp: (option<'a>, option<'b>, ('a, 'b) => int) => int
307307

308308
/**
309-
`zip(a, b)` combines the values contained in `a` and `b` if both are `Some`, returns `None` otherwise..
309+
`zip(a, b)` combines the values contained in `a` and `b` if both are `Some`, returns `None` otherwise.
310310

311311
## Examples
312312

0 commit comments

Comments
 (0)