Skip to content

Commit 8ed0ce0

Browse files
Fix 1 occurrence of define-values-values-to-define
This use of `define-values` is unnecessary.
1 parent e02c067 commit 8ed0ce0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

typed-racket-lib/typed-racket/types/printer.rkt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,8 @@
316316
valid-names))
317317
;; some types in the union may not be coverable by the candidates
318318
;; (e.g. type variables, etc.)
319-
(define-values (uncoverable coverable)
320-
(values (apply set-subtract elems (map cdr candidates))
321-
(set-intersect elems (apply set-union null (map cdr candidates)))))
319+
(define uncoverable (apply set-subtract elems (map cdr candidates)))
320+
(define coverable (set-intersect elems (apply set-union null (map cdr candidates))))
322321
;; set cover, greedy algorithm, ~lg n approximation
323322
(let loop ([to-cover coverable]
324323
[candidates candidates]

0 commit comments

Comments
 (0)