racket/contract: move comment
Move a comment closer to the code it talks about
This commit is contained in:
parent
5b929a7621
commit
721ef2050f
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user