fix `define-wish' docs

This commit is contained in:
Matthew Flatt 2011-03-08 08:33:04 -06:00
parent 501892c0ca
commit 2eac694a3a

View File

@ -116,18 +116,18 @@ The created names must not be the same as a primitive or another defined name.}
@defform[(define-wish id)]{
Defines a function, named id, that we wish exists but have not implemented yet.
Defines a function named @racket[id] that we wish exists but have not implemented yet.
The name of the function cannot be that of a primitive or another definition.
The wished for function can be called with one value @scheme[(id expr)]. }
The wished-for function can be called with one argument: @scheme[(id _expr)].
@defform[(define-wish id expr)] {
Similar to the above form, this defines a wished for function named id. If the
wished for function is called with on value, the result of @scheme[expr] is
Wished-for functions are reported in the test report for the current program.}
@defform/none[#:literals (define-wish)
(define-wish id expr)]{
Similar to the above form, defines a wished-for function named @racket[id]. If the
wished-for function is called with one value, the result of @scheme[expr] is
returned as the default value. }
Wished for functions are reported in the test report for the current program.
@; ----------------------------------------------------------------------
@section[#:tag "beginner-call"]{Function Calls}