racket/contract: move comment

Move a comment closer to the code it talks about
This commit is contained in:
Ben Greenman 2019-05-01 23:24:43 -04:00
parent 5b929a7621
commit 721ef2050f

View File

@ -327,8 +327,6 @@
xs))
ctc))
;; coerce-contract/f : any -> (or/c #f contract?)
;; returns #f if the argument could not be coerced to a contract
(define-values (name-default name-default?)
(let ()
(struct name-default ())
@ -370,6 +368,8 @@
(set! integer-in-0f 0f)
(set! integer-in-1f 1f))
;; coerce-contract/f : any -> (or/c #f contract?)
;; returns #f if the argument could not be coerced to a contract
(define (coerce-contract/f x [name name-default])
(cond
[(coerce-simple-value name x) => values]