@@ -101,7 +101,7 @@ than @racket[key], and the greatest key less than or equal to
101101@racket[#f ] is returned.
102102}
103103
104- @defproc*[([(order [name symbol?]
104+ @defproc*[([(order [name symbol?]
105105 [domain-contract contract?]
106106 [comparator (-> any/c any/c ordering/c)])
107107 (and/c order? procedure?)]
@@ -113,10 +113,11 @@ than @racket[key], and the greatest key less than or equal to
113113 (lambda (x y) (<? y x))])
114114 (and/c order? procedure?)])]{
115115
116- Produces a named order object encapsulating a domain contract and a
116+ Produces an order object encapsulating a domain contract and a
117117comparator function. If a single procedure is given, it is used
118118directly as the comparator. If two or three procedures are given, they
119- are used to construct the comparator.
119+ are used to construct the comparator. The given @racket[name] names
120+ the order object as returned by @racket[object-name].
120121
121122The @racket[domain-contract] is not applied to the comparison
122123function; rather, clients of the order are advised to incorporate the
@@ -134,6 +135,10 @@ comparator.
134135(string-order "abc " "acdc " )
135136(string-order "x " 12 )
136137]
138+
139+ @history[#:changed "1.2.1 " @elem{Changed the name of an order object as
140+ returned by @racket[object-name] to @racket[name] instead of
141+ @racket[(object-name comparator)].}]
137142}
138143
139144@defproc[(order? [x any/c]) boolean?]{
0 commit comments