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))
|
xs))
|
||||||
ctc))
|
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?)
|
(define-values (name-default name-default?)
|
||||||
(let ()
|
(let ()
|
||||||
(struct name-default ())
|
(struct name-default ())
|
||||||
|
@ -370,6 +368,8 @@
|
||||||
(set! integer-in-0f 0f)
|
(set! integer-in-0f 0f)
|
||||||
(set! integer-in-1f 1f))
|
(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])
|
(define (coerce-contract/f x [name name-default])
|
||||||
(cond
|
(cond
|
||||||
[(coerce-simple-value name x) => values]
|
[(coerce-simple-value name x) => values]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user