@@ -52,7 +52,7 @@ Option.some("foo") // Some("foo")
52
52
let some: 'a => option<'a>
53
53
54
54
/**
55
- `flat(value)` flattens a nested `option` value to a single level..
55
+ `flat(value)` flattens a nested `option` value to a single level.
56
56
57
57
## Examples
58
58
@@ -90,7 +90,7 @@ Option.forEach(None, x => Console.log(x)) // returns ()
90
90
let forEach: (option<'a>, 'a => unit) => unit
91
91
92
92
/**
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`.
94
94
95
95
```rescript
96
96
Option.getExn(Some(3)) // 3
@@ -127,7 +127,7 @@ Option.getUnsafe(Some(3)) == 3
127
127
Option.getUnsafe(None) // Raises an error
128
128
```
129
129
130
- ## Improtant
130
+ ## Important
131
131
132
132
This is an unsafe operation, it assumes `value` is neither `None`, `Some(None))`, `Some(Some(None))` etc.
133
133
*/
@@ -306,7 +306,7 @@ cmp(None, None, clockCompare) // 0
306
306
let cmp: (option<'a>, option<'b>, ('a, 'b) => int) => int
307
307
308
308
/**
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.
310
310
311
311
## Examples
312
312
0 commit comments