Skip to content

Commit 73c5ea8

Browse files
resyntax-ci[bot]samth
authored andcommitted
Fix 1 occurrence of define-lambda-to-define
The `define` form supports a shorthand for defining functions.
1 parent 016a6cd commit 73c5ea8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

typed-racket-lib/typed-racket/static-contracts/optimize.rkt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@
404404
;; If we trust a specific side then we drop all contracts protecting that side.
405405
(define (optimize sc #:trusted-positive [trusted-positive #f] #:trusted-negative [trusted-negative #f] #:recursive-kinds [recursive-kinds #f])
406406
(define sc->kind (make-sc->kind recursive-kinds))
407-
(define flat-sc? (λ (sc) (eq? 'flat (sc->kind sc))))
407+
(define (flat-sc? sc)
408+
(eq? 'flat (sc->kind sc)))
408409
(define trusted-side-reduce (make-trusted-side-reduce flat-sc?))
409410
(define update-side (make-update-side flat-sc?))
410411

0 commit comments

Comments
 (0)