From 43912bef50805056fc43a0eca9bd7e6d89f45142 Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Tue, 26 Feb 2013 20:23:28 -0500 Subject: [PATCH] Some tweaks for Guide section 4 --- collects/scribblings/guide/begin.scrbl | 2 +- collects/scribblings/guide/define.scrbl | 6 +++--- collects/scribblings/guide/lambda.scrbl | 2 +- collects/scribblings/guide/set.scrbl | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/collects/scribblings/guide/begin.scrbl b/collects/scribblings/guide/begin.scrbl index 945e29705a..230032a298 100644 --- a/collects/scribblings/guide/begin.scrbl +++ b/collects/scribblings/guide/begin.scrbl @@ -36,7 +36,7 @@ tail position with respect to the @racket[begin] form. Many forms, such as @racket[lambda] or @racket[cond] support a sequence of expressions even without a @racket[begin]. Such positions are -sometimes said to have an @defterm{implicit begin}. +sometimes said to have an @deftech{implicit begin}. @defexamples[ (define (print-triangle height) diff --git a/collects/scribblings/guide/define.scrbl b/collects/scribblings/guide/define.scrbl index 5612192ede..00b1a2eb67 100644 --- a/collects/scribblings/guide/define.scrbl +++ b/collects/scribblings/guide/define.scrbl @@ -48,9 +48,9 @@ which is a shorthand for (greet "John" "Doe") ] -The function shorthand via @racket[define] also supports a ``rest'' -argument (i.e., a final argument to collect extra arguments in a -list): +The function shorthand via @racket[define] also supports a +@tech{rest argument} (i.e., a final argument to collect extra +arguments in a list): @specform[(define (id arg ... . rest-id) body ...+)]{} diff --git a/collects/scribblings/guide/lambda.scrbl b/collects/scribblings/guide/lambda.scrbl index 21e11f9f41..730eea7ff5 100644 --- a/collects/scribblings/guide/lambda.scrbl +++ b/collects/scribblings/guide/lambda.scrbl @@ -83,7 +83,7 @@ additional arguments. (max-mag) ] -A @racket[_rest-id] variable is sometimes called a @defterm{rest +A @racket[_rest-id] variable is sometimes called a @deftech{rest argument}, because it accepts the ``rest'' of the function arguments. @;------------------------------------------------------------------------ diff --git a/collects/scribblings/guide/set.scrbl b/collects/scribblings/guide/set.scrbl index 1de0ea126c..5aa9eda767 100644 --- a/collects/scribblings/guide/set.scrbl +++ b/collects/scribblings/guide/set.scrbl @@ -49,7 +49,7 @@ guidelines may help explain when using @racket[set!] is appropriate. @itemize[ - @item{As in any modern language, assigning to shared identifier is no + @item{As in any modern language, assigning to a shared identifier is no substitute for passing an argument to a procedure or getting its result. @@ -157,7 +157,7 @@ significantly better algorithm. The use of mutable values, such as vectors and hash tables, raises fewer suspicions about the style of a program than using @racket[set!] directly. Nevertheless, simply replacing @racket[set!]s in a program -with a @racket[vector-set!]s obviously does not improve the style of +with @racket[vector-set!]s obviously does not improve the style of the program. @;------------------------------------------------------------------------