From d22a16a3c70bd2fbe0c7350db7a08bc5f3345077 Mon Sep 17 00:00:00 2001 From: Ryan Culpepper Date: Thu, 12 May 2011 15:15:35 -0600 Subject: [PATCH] fix guide typos closes PR 10577 --- collects/scribblings/guide/define.scrbl | 8 ++++---- collects/scribblings/guide/hash-tables.scrbl | 2 +- collects/scribblings/guide/lists.scrbl | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/collects/scribblings/guide/define.scrbl b/collects/scribblings/guide/define.scrbl index cd44da6b71..12b538e9ba 100644 --- a/collects/scribblings/guide/define.scrbl +++ b/collects/scribblings/guide/define.scrbl @@ -217,7 +217,7 @@ so the following are valid instances of the grammar: (lambda (f) (code:comment @#,elem{one definition}) (define (log-it what) - (printf "~a\n")) + (printf "~a\n" what)) (log-it "running") (f 0) (log-it "done")) @@ -228,11 +228,11 @@ so the following are valid instances of the grammar: (log-it "done") (begin (log-it "running") - (f 0) + (f n) (call (- n 1))))) (define (log-it what) - (printf "~a\n")) - (call f n)) + (printf "~a\n" what)) + (call n)) ] Internal definitions in a particular @racket[_body] sequence are diff --git a/collects/scribblings/guide/hash-tables.scrbl b/collects/scribblings/guide/hash-tables.scrbl index ed60c0c4e2..51126cee07 100644 --- a/collects/scribblings/guide/hash-tables.scrbl +++ b/collects/scribblings/guide/hash-tables.scrbl @@ -40,7 +40,7 @@ A literal immutable hash table can be written as an expression by using @litchar{#hasheqv} (for an @scheme[eqv?]-based table), or @litchar{#hasheq} (for an @scheme[eq?]-based table). A parenthesized sequence must immediately follow @litchar{#hash}, @litchar{#hasheq}, -or @litchar{#hasheqv}, where each element is a sequence is a dotted +or @litchar{#hasheqv}, where each element is a dotted key--value pair. The @litchar{#hash}, etc. forms implicitly @scheme[quote] their key and value sub-forms. diff --git a/collects/scribblings/guide/lists.scrbl b/collects/scribblings/guide/lists.scrbl index 3f7b03d028..a8aec7681d 100644 --- a/collects/scribblings/guide/lists.scrbl +++ b/collects/scribblings/guide/lists.scrbl @@ -286,7 +286,7 @@ It turns out that if you write (f i))) ] -then the @racket[for/list] form in the function both is expanded to +then the @racket[for/list] form in the function is expanded to essentially the same code as the @racket[iter] local definition and use. The difference is merely syntactic convenience.