From 2eac694a3ad143074828b68b40fd3f4ad5a77803 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 8 Mar 2011 08:33:04 -0600 Subject: [PATCH] fix `define-wish' docs --- collects/scribblings/htdp-langs/beginner.scrbl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/collects/scribblings/htdp-langs/beginner.scrbl b/collects/scribblings/htdp-langs/beginner.scrbl index 180cdcc06f..4c91595190 100644 --- a/collects/scribblings/htdp-langs/beginner.scrbl +++ b/collects/scribblings/htdp-langs/beginner.scrbl @@ -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}