Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Core__Float.resi
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module Constants: {
## Examples

```rescript
Float.Constants.minValue
Float.Constants.maxValue
```
*/
@val
Expand Down
6 changes: 3 additions & 3 deletions src/Core__List.resi
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ List.make(~length=3, 1) // list{1, 1, 1}
let make: (~length: int, 'a) => t<'a>

/**
`makeBy(length, f)` return a list of length `length` with element initialized
`fromInitializer(~length, f)` return a list of length `length` with element initialized
with `f`. Returns an empty list if `length` is negative.

## Examples
Expand Down Expand Up @@ -432,7 +432,7 @@ List.forEachWithIndex(list{"a", "b", "c"}, (x, index) => {
prints:
Item 0 is a
Item 1 is b
Item 2 is cc
Item 2 is c
*/
```
*/
Expand Down Expand Up @@ -534,7 +534,7 @@ let reduce2: (t<'b>, t<'c>, 'a, ('a, 'b, 'c) => 'a) => 'a
`reduceReverse2(list1, list2, initialValue, f)` applies `f` to each element of
`list1` and `list2`from end to beginning. Stops with the shorter list. Function
`f` has three parameters: an accumulator which starts with a value of
`initialValue`, an item from `l1`, and an item from `l2`. `reduce2` returns the
`initialValue`, an item from `l1`, and an item from `l2`. `reduceReverse2` returns the
final value of the accumulator.

## Examples
Expand Down
8 changes: 4 additions & 4 deletions src/Core__Promise.resi
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ external all4: ((t<'a>, t<'b>, t<'c>, t<'d>)) => t<('a, 'b, 'c, 'd)> = "all"
external all5: ((t<'a>, t<'b>, t<'c>, t<'d>, t<'e>)) => t<('a, 'b, 'c, 'd, 'e)> = "all"

/**
`all6((p1, p2, p4, p5, p6))`. Like `all()`, but with a fixed size tuple of 6
")*/
`all6((p1, p2, p3, p4, p5, p6))`. Like `all()`, but with a fixed size tuple of 6
*/
@scope("Promise")
@val
external all6: ((t<'a>, t<'b>, t<'c>, t<'d>, t<'e>, t<'f>)) => t<('a, 'b, 'c, 'd, 'e, 'f)> = "all"
Expand Down Expand Up @@ -425,8 +425,8 @@ external allSettled5: ((t<'a>, t<'b>, t<'c>, t<'d>, t<'e>)) => t<(
)> = "allSettled"

/**
`allSettled6((p1, p2, p4, p5, p6))`. Like `allSettled()`, but with a fixed size tuple of 6
")*/
`allSettled6((p1, p2, p3, p4, p5, p6))`. Like `allSettled()`, but with a fixed size tuple of 6
*/
@scope("Promise")
@val
external allSettled6: ((t<'a>, t<'b>, t<'c>, t<'d>, t<'e>, t<'f>)) => t<(
Expand Down
6 changes: 3 additions & 3 deletions src/Core__RegExp.resi
Original file line number Diff line number Diff line change
Expand Up @@ -263,17 +263,17 @@ See [`RegExp.sticky`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Re
## Examples
```rescript
let regexp1 = RegExp.fromStringWithFlags("\\w+", ~flags="g")
Console.log(regexp1->RegExp.unicode) // Logs `false`, since `y` is not set
Console.log(regexp1->RegExp.sticky) // Logs `false`, since `y` is not set

let regexp2 = RegExp.fromStringWithFlags("\\w+", ~flags="my")
Console.log(regexp2->RegExp.unicode) // Logs `true`, since `y` is set
Console.log(regexp2->RegExp.sticky) // Logs `true`, since `y` is set
```
*/
@get
external sticky: t => bool = "sticky"

/**
`unicode(regexp)` returns whether the unicode (`y`) flag is set on this `RegExp`.
`unicode(regexp)` returns whether the unicode (`u`) flag is set on this `RegExp`.

See [`RegExp.unicode`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode) on MDN.

Expand Down
Loading