Use `define-type' to make docs clearer.

original commit: da3b4ed543ec9ca9aa3b114f4da44d12af4a60e7
This commit is contained in:
Sam Tobin-Hochstadt 2010-07-02 15:04:43 -04:00
parent c67aef8622
commit b4e86dc502

View File

@ -94,7 +94,7 @@ to describe an infinite family of data. For example, this is the type
of binary trees of numbers.
@racketblock[
(Rec BT (U Number (Pair BT BT)))]
(define-type BinaryTree (Rec BT (U Number (Pair BT BT))))]
The @racket[Rec] type constructor specifies that the type @racket[BT]
refers to the whole binary tree type within the body of the