Skip to content

Commit faf449c

Browse files
committed
Change return type of Intl.Collator.compare to Ordering.t
1 parent 6f94977 commit faf449c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/@rescript/runtime/Stdlib_Intl_Collator.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ Intl.Collator.resolvedOptions(collator).locale == "en-US"
7777
7878
```rescript
7979
let collator = Intl.Collator.make(~locales=["en-US"])
80-
collator->Intl.Collator.compare("apple", "banana") < 0
80+
Ordering.isLess(collator->Intl.Collator.compare("apple", "banana"))
8181
```
8282
*/
83-
@send external compare: (t, string, string) => int = "compare"
83+
@send external compare: (t, string, string) => Stdlib_Ordering.t = "compare"
8484

8585
/**
8686
`ignore(collator)` ignores the provided collator and returns unit.

0 commit comments

Comments
 (0)