fix htdp doc errors (PR 9846)

svn: r12102
This commit is contained in:
Matthew Flatt 2008-10-23 14:18:58 +00:00
parent bb7d3d1a28
commit 70146a8d3f
3 changed files with 20 additions and 5 deletions

View File

@ -52,7 +52,7 @@
(begin0 expr expr ...)
(set! id expr)
(delay expr)
(lambda (id id ...) expr)
(lambda (id ...) expr)
(local [definition ...] expr)
(letrec ([id expr] ...) expr)
(shared ([id expr] ...) expr)
@ -60,7 +60,7 @@
(let id ([id expr] ...) expr)
(let* ([id expr] ...) expr)
(recur id ([id expr] ...) expr)
(code:line (expr expr expr ...) (code:comment #, @seclink["intermediate-lambda-call"]{function call}))
(code:line (expr expr ...) (code:comment #, @seclink["advanced-call"]{function call}))
(cond [expr expr] ... [expr expr])
(cond [expr expr] ... [else expr])
(case expr [(choice choice ...) expr] ...
@ -133,6 +133,21 @@ function is allowed to accept zero arguments.}
@; ----------------------------------------------------------------------
@section[#:tag "advanced-call"]{Function Calls}
@defform/none[(expr expr ...)]{
A function call in Advanced is the same as an Intermediate with Lambda
@seclink["intermediate-lambda-call"]{function call}, except that zero
arguments are allowed.}
@defform[(#%app expr expr ...)]{
A function call can be written with @scheme[#%app], though it's
practically never written that way.}
@; ----------------------------------------------------------------------
@section{@scheme[begin]}
@defform[(begin expr expr ...)]{

View File

@ -107,7 +107,7 @@ Like a Beginning @seclink["beginner-call"]{function call}, except that
the function position can be an arbitrary expression---perhaps a
@scheme[lambda] expression or a @scheme[_prim-op].}
@defform[(#%app id expr expr ...)]{
@defform[(#%app expr expr expr ...)]{
A function call can be written with @scheme[#%app], though it's
practically never written that way.}

View File

@ -118,8 +118,8 @@ Back in @exec{mzscheme}, try loading the file and running @scheme[go]:
(eval:alts (go) 'yep-it-works)
]
Try modifying @filepath{serve.ss}, and then running @scheme[(enter!
"serve.ss")] again to re-load the module, then check your changes.
Try modifying @filepath{serve.ss}, and then run @scheme[(enter!
"serve.ss")] again to re-load the module, and then check your changes.
@; ----------------------------------------------------------------------
@section{``Hello World'' Server}