Skip to content

Commit 0c57c7f

Browse files
authored
[Docs] Correctly IntCmp.comparable to Belt.Id.comparable (#2573)
Typo probably.
1 parent 0c5f79c commit 0c57c7f

File tree

6 files changed

+81
-81
lines changed

6 files changed

+81
-81
lines changed

docs/api/Belt.Map.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
179179

180180
</div>
181181
<div class="examples">
182-
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val IntCmp.comparable ~cmp:(fun (x:int) y -&gt; Pervasives.compare x y));;
182+
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val Belt.Id.comparable ~cmp:(fun (x:int) y -&gt; Pervasives.compare x y));;
183183
let s = make ~id:(module IntCmp)
184184
</code></pre> </pre>
185185
</div>
@@ -192,7 +192,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
192192

193193
</div>
194194
<div class="examples">
195-
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val IntCmp.comparable ~cmp:(fun (x:int) y -&gt; Pervasives.compare x y));;
195+
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val Belt.Id.comparable ~cmp:(fun (x:int) y -&gt; Pervasives.compare x y));;
196196
isEmpty (ofArray [|1,"1"|] ~id:(module IntCmp)) = false;;
197197
</code></pre> </pre>
198198
</div>
@@ -205,7 +205,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
205205

206206
</div>
207207
<div class="examples">
208-
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val IntCmp.comparable ~cmp:(fun (x:int) y -&gt; Pervasives.compare x y));;
208+
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val Belt.Id.comparable ~cmp:(fun (x:int) y -&gt; Pervasives.compare x y));;
209209
has (ofArray [|1,"1"|] ~id:(module IntCmp)) 1 = true;;
210210
</code></pre> </pre>
211211
</div>
@@ -252,7 +252,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
252252
</div>
253253
<div class="examples">
254254
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
255-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
255+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
256256

257257
let s0 = ofArray ~id:(module IntCmp) [|4,"4";1,"1";2,"2,"3""|];;
258258
let acc = ref [] ;;
@@ -274,7 +274,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
274274
</div>
275275
<div class="examples">
276276
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
277-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
277+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
278278

279279
let s0 = ofArray ~id:(module IntCmp) [|4,"4";1,"1";2,"2,"3""|];;
280280
reduce s0 [] (fun acc k v -&gt; (k,v) acc ) = [4,"4";3,"3";2,"2";1,"1"];;
@@ -312,7 +312,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
312312
</div>
313313
<div class="examples">
314314
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
315-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
315+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
316316
size (ofArray [2,"2"; 2,"1"; 3,"3"] ~id:(module IntCmp)) = 2 ;;
317317
</code></pre> </pre>
318318
</div>
@@ -326,7 +326,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
326326
</div>
327327
<div class="examples">
328328
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
329-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
329+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
330330
toArray (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) = [1,"1";2,"2";3,"3"]
331331
</code></pre> </pre>
332332
</div>
@@ -352,7 +352,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
352352
</div>
353353
<div class="examples">
354354
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
355-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
355+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
356356
toArray (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) = [1,"1";2,"2";3,"3"]
357357
</code></pre> </pre>
358358
</div>
@@ -366,7 +366,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
366366
</div>
367367
<div class="examples">
368368
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
369-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
369+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
370370
keysToArray (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) =
371371
[|1;2;3|];;
372372
</code></pre> </pre>
@@ -381,7 +381,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
381381
</div>
382382
<div class="examples">
383383
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
384-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
384+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
385385
valuesToArray (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) =
386386
[|"1";"2";"3"|];;
387387
</code></pre> </pre>
@@ -472,7 +472,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
472472
</div>
473473
<div class="examples">
474474
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
475-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
475+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
476476
get (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) 2 =
477477
Some "2";;
478478
get (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) 2 =
@@ -527,7 +527,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
527527
</div>
528528
<div class="examples">
529529
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
530-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
530+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
531531

532532
let s0 = (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp));;
533533

@@ -563,7 +563,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
563563
</div>
564564
<div class="examples">
565565
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
566-
(val IntCmp.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
566+
(val Belt.Id.comparableU ~cmp:(fun[@bs] (x:int) y -&gt; Pervasives.compare x y));;
567567

568568
let s0 = (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp));;
569569

docs/api/Belt.Set.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
176176

177177
</div>
178178
<div class="examples">
179-
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val IntCmp.comparable ~cmp:(fun (x:int) y -&gt; Pervasives.compare x y))
179+
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val Belt.Id.comparable ~cmp:(fun (x:int) y -&gt; Pervasives.compare x y))
180180
let s = make ~id:(module IntCmp)
181181
</code></pre> </pre>
182182
</div>
@@ -189,7 +189,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
189189

190190
</div>
191191
<div class="examples">
192-
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val IntCmp.comparableU
192+
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp = (val Belt.Id.comparableU
193193
~cmp:(fun[@bs]
194194
(x:int) y -&gt; Pervasives.compare x y));;
195195
toArray (ofArray [1;3;2;4] (module IntCmp)) = [1;2;3;4]
@@ -220,7 +220,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
220220
</div>
221221
<div class="examples">
222222
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
223-
(val IntCmp.comparableU
223+
(val Belt.Id.comparableU
224224
~cmp:(fun[@bs]
225225
(x:int) y -&gt; Pervasives.compare x y));;
226226
isEmpty (ofArray [||] ~id:(module IntCmp)) = true;;
@@ -236,7 +236,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
236236
</div>
237237
<div class="examples">
238238
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
239-
(val IntCmp.comparableU
239+
(val Belt.Id.comparableU
240240
~cmp:(fun[@bs]
241241
(x:int) y -&gt; Pervasives.compare x y));;
242242
let v = ofArray [|1;4;2;5|] ~id:(module IntCmp);;
@@ -254,7 +254,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
254254
</div>
255255
<div class="examples">
256256
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
257-
(val IntCmp.comparableU
257+
(val Belt.Id.comparableU
258258
~cmp:(fun[@bs]
259259
(x:int) y -&gt; Pervasives.compare x y));;
260260
let s0 = make ~id:(module IntCmp);;
@@ -292,7 +292,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
292292
</div>
293293
<div class="examples">
294294
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
295-
(val IntCmp.comparableU
295+
(val Belt.Id.comparableU
296296
~cmp:(fun[@bs]
297297
(x:int) y -&gt; Pervasives.compare x y));;
298298
let s0 = ofArray ~id:(module IntCmp) [|2;3;1;4;5|];;
@@ -329,7 +329,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
329329
</div>
330330
<div class="examples">
331331
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
332-
(val IntCmp.comparableU
332+
(val Belt.Id.comparableU
333333
~cmp:(fun[@bs]
334334
(x:int) y -&gt; Pervasives.compare x y));;
335335
let s0 = ofArray ~id:(module IntCmp) [|5;2;3;5;6|]];;
@@ -347,7 +347,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
347347
</div>
348348
<div class="examples">
349349
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
350-
(val IntCmp.comparableU
350+
(val Belt.Id.comparableU
351351
~cmp:(fun[@bs]
352352
(x:int) y -&gt; Pervasives.compare x y));;
353353
let s0 = ofArray ~id:(module IntCmp) [|5;2;3;5;6|]];;
@@ -365,7 +365,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
365365
</div>
366366
<div class="examples">
367367
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
368-
(val IntCmp.comparableU
368+
(val Belt.Id.comparableU
369369
~cmp:(fun[@bs]
370370
(x:int) y -&gt; Pervasives.compare x y));;
371371
let s0 = ofArray ~id:(module IntCmp) [|5;2;3;5;6|]];;
@@ -384,7 +384,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
384384
</div>
385385
<div class="examples">
386386
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
387-
(val IntCmp.comparableU
387+
(val Belt.Id.comparableU
388388
~cmp:(fun[@bs]
389389
(x:int) y -&gt; Pervasives.compare x y));;
390390
let s0 = ofArray ~id:(module IntCmp) [|5;2;3;5;6|]];;
@@ -429,7 +429,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
429429
</div>
430430
<div class="examples">
431431
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
432-
(val IntCmp.comparableU
432+
(val Belt.Id.comparableU
433433
~cmp:(fun[@bs]
434434
(x:int) y -&gt; Pervasives.compare x y));;
435435
let s0 = ofArray ~id:(module IntCmp) [|5;2;3;5;6|]];;
@@ -449,7 +449,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
449449
</div>
450450
<div class="examples">
451451
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
452-
(val IntCmp.comparableU
452+
(val Belt.Id.comparableU
453453
~cmp:(fun[@bs]
454454
(x:int) y -&gt; Pervasives.compare x y));;
455455
let s0 = ofArray ~id:(module IntCmp) [|5;2;3;5;6|]];;
@@ -512,7 +512,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
512512
</div>
513513
<div class="examples">
514514
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
515-
(val IntCmp.comparableU
515+
(val Belt.Id.comparableU
516516
~cmp:(fun[@bs]
517517
(x:int) y -&gt; Pervasives.compare x y));;
518518
let s0 = ofArray ~id:(module IntCmp) [|5;2;3;5;6|]];;
@@ -529,7 +529,7 @@ <h1>Module <a href="type_Belt.Set.html">Belt.Set</a></h1>
529529
</div>
530530
<div class="examples">
531531
<pre class="example"> <pre class="codepre"><code class="code"> module IntCmp =
532-
(val IntCmp.comparableU
532+
(val Belt.Id.comparableU
533533
~cmp:(fun[@bs]
534534
(x:int) y -&gt; Pervasives.compare x y));;
535535
let s0 = ofArray ~id:(module IntCmp) [|5;2;3;5;6|]];;

0 commit comments

Comments
 (0)