simplify the drracket/check-syntax documentation a little
This commit is contained in:
parent
0fa5f866ae
commit
e18f8e904f
|
@ -6,7 +6,7 @@
|
||||||
@(begin
|
@(begin
|
||||||
(syncheck-example-eval
|
(syncheck-example-eval
|
||||||
'(require drracket/check-syntax racket/class
|
'(require drracket/check-syntax racket/class
|
||||||
setup/main-doc setup/collects)))
|
setup/path-to-relative)))
|
||||||
|
|
||||||
|
|
||||||
@title{DrRacket Tools}
|
@title{DrRacket Tools}
|
||||||
|
@ -53,11 +53,7 @@ in order to make the results be platform independent.
|
||||||
[(pair? x) (cons (loop (car x)) (loop (cdr x)))]
|
[(pair? x) (cons (loop (car x)) (loop (cdr x)))]
|
||||||
[(vector? x) (for/vector ([x (in-vector x)])
|
[(vector? x) (for/vector ([x (in-vector x)])
|
||||||
(loop x))]
|
(loop x))]
|
||||||
[(path? x)
|
[(path? x) (path->relative-string/library x)]
|
||||||
(define p (path->collects-relative x))
|
|
||||||
(if (path? p)
|
|
||||||
(path->main-doc-relative x)
|
|
||||||
p)]
|
|
||||||
[else x])))
|
[else x])))
|
||||||
|
|
||||||
(let ([example-module
|
(let ([example-module
|
||||||
|
|
Loading…
Reference in New Issue
Block a user