Skip to content

Commit cc107a4

Browse files
committed
Fix belt_Set.cppo.resi (#6771)
1 parent 36e8a22 commit cc107a4

File tree

3 files changed

+33
-40
lines changed

3 files changed

+33
-40
lines changed

jscomp/others/belt_Set.cppo.resi

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ let intersect: (t, t) => t
7474
let diff: (t, t) => t
7575

7676
/**
77-
`subset(s1, s20` tests whether the set `s1` is a subset of the set `s2`.
77+
`subset(s1, s2)` tests whether the set `s1` is a subset of the set `s2`.
7878
*/
7979
let subset: (t, t) => bool
8080

jscomp/others/belt_SetInt.resi

+13-16
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
2424

2525
/***
26-
This module is [`Belt.Set`]() specialized with value type to be a primitive type.
27-
It is more efficient in general, the API is the same with [`Belt_Set`]() except its value type is fixed,
28-
and identity is not needed(using the built-in one)
26+
This module is [`Belt.Set`]() specialized with value type to be a primitive type.
27+
It is more efficient in general, the API is the same with [`Belt_Set`]() except its value type is fixed,
28+
and identity is not needed(using the built-in one)
2929

30-
**See** [`Belt.Set`]()
30+
**See** [`Belt.Set`]()
3131
*/
3232

3333
/** The type of the set elements. */
@@ -47,14 +47,14 @@ let isEmpty: t => bool
4747
let has: (t, value) => bool
4848

4949
/**
50-
`add(s, x)` if `x` was already in `s`, `s` is returned unchanged.
50+
`add(s, x)` If `x` was already in `s`, `s` is returned unchanged.
5151
*/
5252
let add: (t, value) => t
5353

5454
let mergeMany: (t, array<value>) => t
5555

5656
/**
57-
`remove(m, x)` if `x` was not in `m`, `m` is returned reference unchanged.
57+
`remove(m, x)` If `x` was not in `m`, `m` is returned reference unchanged.
5858
*/
5959
let remove: (t, value) => t
6060

@@ -77,7 +77,7 @@ of sets.
7777
*/
7878
let cmp: (t, t) => int
7979

80-
/**
80+
/**
8181
`eq(s1, s2)` tests whether the sets `s1` and `s2` are equal, that is, contain
8282
equal elements.
8383
*/
@@ -97,15 +97,15 @@ let reduce: (t, 'a, ('a, value) => 'a) => 'a
9797

9898
let everyU: (t, (. value) => bool) => bool
9999

100-
/**
100+
/**
101101
`every(p, s)` checks if all elements of the set satisfy the predicate `p`. Order
102102
unspecified.
103103
*/
104104
let every: (t, value => bool) => bool
105105

106106
let someU: (t, (. value) => bool) => bool
107107

108-
/**
108+
/**
109109
`some(p, s)` checks if at least one element of the set satisfies the predicate
110110
`p`. Oder unspecified.
111111
*/
@@ -149,13 +149,10 @@ let getUndefined: (t, value) => Js.undefined<value>
149149
let getExn: (t, value) => value
150150

151151
/**
152-
`split(x, s)` returns a triple `(l, present, r)`, where
153-
`l` is the set of elements of `s` that are
154-
strictly less than `x`;
155-
`r` is the set of elements of `s` that are
156-
strictly greater than `x`;
157-
`present` is `false` if `s` contains no element equal to `x`,
158-
or `true` if `s` contains an element equal to `x`.
152+
`split(x, s)` returns a triple `(l, present, r)`, where `l` is the set of
153+
elements of `s` that are strictly less than `x`;`r` is the set of elements of
154+
`s` that are strictly greater than `x`; `present` is `false` if `s` contains no
155+
element equal to `x`, or `true` if `s` contains an element equal to `x`.
159156
*/
160157
let split: (t, value) => ((t, t), bool)
161158

jscomp/others/belt_SetString.resi

+19-23
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
2424

2525
/***
26-
This module is [`Belt.Set`]() specialized with value type to be a primitive type.
27-
It is more efficient in general, the API is the same with [`Belt_Set`]() except its value type is fixed,
28-
and identity is not needed(using the built-in one)
26+
This module is [`Belt.Set`]() specialized with value type to be a primitive type.
27+
It is more efficient in general, the API is the same with [`Belt_Set`]() except its value type is fixed,
28+
and identity is not needed(using the built-in one)
2929

30-
**See** [`Belt.Set`]()
30+
**See** [`Belt.Set`]()
3131
*/
3232

3333
/** The type of the set elements. */
@@ -71,21 +71,21 @@ let diff: (t, t) => t
7171
*/
7272
let subset: (t, t) => bool
7373

74-
/**
74+
/**
7575
Total ordering between sets. Can be used as the ordering function for doing sets
7676
of sets.
7777
*/
7878
let cmp: (t, t) => int
7979

80-
/**
80+
/**
8181
`eq(s1, s2)` tests whether the sets `s1` and `s2` are equal, that is, contain
8282
equal elements.
8383
*/
8484
let eq: (t, t) => bool
8585

8686
let forEachU: (t, (. value) => unit) => unit
8787

88-
/**
88+
/**
8989
`forEach(s, f)` applies `f` in turn to all elements of `s`. In increasing order
9090
*/
9191
let forEach: (t, value => unit) => unit
@@ -97,34 +97,33 @@ let reduce: (t, 'a, ('a, value) => 'a) => 'a
9797

9898
let everyU: (t, (. value) => bool) => bool
9999

100-
/**
101-
`every(p, s)` checks if all elements of the set satisfy the predicate `p`.
102-
Order unspecified.
100+
/**
101+
`every(p, s)` checks if all elements of the set satisfy the predicate `p`. Order
102+
unspecified.
103103
*/
104104
let every: (t, value => bool) => bool
105105

106106
let someU: (t, (. value) => bool) => bool
107107

108-
/**
108+
/**
109109
`some(p, s)` checks if at least one element of the set satisfies the predicate
110110
`p`. Oder unspecified.
111111
*/
112112
let some: (t, value => bool) => bool
113113

114114
let keepU: (t, (. value) => bool) => t
115115

116-
/**
116+
/**
117117
`keep(p, s)` returns the set of all elements in `s` that satisfy predicate `p`.
118118
*/
119119
let keep: (t, value => bool) => t
120120

121121
let partitionU: (t, (. value) => bool) => (t, t)
122122

123123
/**
124-
`partition(p, s)` returns a pair of sets `(s1, s2)`, where
125-
`s1` is the set of all the elements of `s` that satisfy the
126-
predicate `p`, and `s2` is the set of all the elements of
127-
`s` that do not satisfy `p`.
124+
`partition(p, s)` returns a pair of sets `(s1, s2)`, where `s1` is the set of
125+
all the elements of `s` that satisfy the predicate `p`, and `s2` is the set of
126+
all the elements of `s` that do not satisfy `p`.
128127
*/
129128
let partition: (t, value => bool) => (t, t)
130129

@@ -150,13 +149,10 @@ let getUndefined: (t, value) => Js.undefined<value>
150149
let getExn: (t, value) => value
151150

152151
/**
153-
`split(x, s)` returns a triple `(l, present, r)`, where
154-
`l` is the set of elements of `s` that are
155-
strictly less than `x`;
156-
`r` is the set of elements of `s` that are
157-
strictly greater than `x`;
158-
`present` is `false` if `s` contains no element equal to `x`,
159-
or `true` if `s` contains an element equal to `x`.
152+
`split(x, s)` returns a triple `(l, present, r)`, where `l` is the set of
153+
elements of `s` that are strictly less than `x`;`r` is the set of elements of
154+
`s` that are strictly greater than `x`; `present` is `false` if `s` contains no
155+
element equal to `x`, or `true` if `s` contains an element equal to `x`.
160156
*/
161157
let split: (t, value) => ((t, t), bool)
162158

0 commit comments

Comments
 (0)