Added for-syntax require in example

This commit is contained in:
Georges Dupéron 2016-06-17 18:23:53 +02:00
parent fef49f611e
commit 948f9adef1

View File

@ -46,6 +46,11 @@ And so does @racket[(require (submod ".." …))]:
(require (submod ".." ms2))]
@chunk[<*>
(begin
;; Wrap the require in a `(begin …)` so that it gets ignored,
;; otherwise scribble complains some identifiers are loaded twice
;; for-label.
(require (for-syntax)))
(require typed/rackunit)
<submod>
(check-equal? (+ x x) 2)