Revise `require/typed' docs. Closes PR 11890.
This commit is contained in:
parent
3707310250
commit
760625c031
|
@ -371,7 +371,7 @@ In all cases, the identifiers are protected with @rtech{contracts} which
|
||||||
enforce the specified types. If this contract fails, the module
|
enforce the specified types. If this contract fails, the module
|
||||||
@racket[m] is blamed.
|
@racket[m] is blamed.
|
||||||
|
|
||||||
Some types, notably polymorphic types constructed with @racket[All],
|
Some types, notably the types of predicates such as @racket[number?],
|
||||||
cannot be converted to contracts and raise a static error when used in
|
cannot be converted to contracts and raise a static error when used in
|
||||||
a @racket[require/typed] form. Here is an example of using
|
a @racket[require/typed] form. Here is an example of using
|
||||||
@racket[case->] in @racket[require/typed].
|
@racket[case->] in @racket[require/typed].
|
||||||
|
|
Loading…
Reference in New Issue
Block a user