diff --git a/src/Core__Float.resi b/src/Core__Float.resi index 806d8df..a81ee89 100644 --- a/src/Core__Float.resi +++ b/src/Core__Float.resi @@ -102,7 +102,7 @@ module Constants: { ## Examples ```rescript - Float.Constants.minValue + Float.Constants.maxValue ``` */ @val diff --git a/src/Core__List.resi b/src/Core__List.resi index 610a282..a013cc0 100644 --- a/src/Core__List.resi +++ b/src/Core__List.resi @@ -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 @@ -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 */ ``` */ @@ -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 diff --git a/src/Core__Promise.resi b/src/Core__Promise.resi index 5468bf9..82a2a1c 100644 --- a/src/Core__Promise.resi +++ b/src/Core__Promise.resi @@ -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" @@ -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<( diff --git a/src/Core__RegExp.resi b/src/Core__RegExp.resi index 3e12dae..9b1c12a 100644 --- a/src/Core__RegExp.resi +++ b/src/Core__RegExp.resi @@ -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.