typos from Grant (PR9652)

svn: r11036
This commit is contained in:
Eli Barzilay 2008-08-02 19:42:26 +00:00
parent 3e3bbe5c24
commit fd205b8470
8 changed files with 12 additions and 9 deletions

View File

@ -8,7 +8,7 @@
Most functions used for branching, such as @scheme[<] and Most functions used for branching, such as @scheme[<] and
@scheme[string?], produce either @scheme[#t] or @scheme[#f]. Scheme's @scheme[string?], produce either @scheme[#t] or @scheme[#f]. Scheme's
branching forms, however, treat any value other than @scheme[#f] as branching forms, however, treat any value other than @scheme[#f] as
true. We we say a @defterm{true value} to mean any value other than true. We say a @defterm{true value} to mean any value other than
@scheme[#f]. @scheme[#f].
This convention for ``true value'' meshes well with protocols where This convention for ``true value'' meshes well with protocols where
@ -45,7 +45,7 @@ the @scheme[_test-expr] is always evaluated. If it produces any value
other than @scheme[#f], then @scheme[_then-expr] is other than @scheme[#f], then @scheme[_then-expr] is
evaluated. Otherwise, @scheme[_else-expr] is evaluated. evaluated. Otherwise, @scheme[_else-expr] is evaluated.
An @scheme[if] form must have both an @scheme[_then-expr] and an An @scheme[if] form must have both a @scheme[_then-expr] and an
@scheme[_else-expr]; the latter is not optional. To perform (or skip) @scheme[_else-expr]; the latter is not optional. To perform (or skip)
side-effects based on a @scheme[_test-expr], use @scheme[when] or side-effects based on a @scheme[_test-expr], use @scheme[when] or
@scheme[unless], which we describe later in @secref["begin"]. @scheme[unless], which we describe later in @secref["begin"].

View File

@ -123,7 +123,7 @@ predicate:
@section[#:tag "prompt"]{Prompts and Aborts} @section[#:tag "prompt"]{Prompts and Aborts}
When an exception is raised control, escapes out of an arbitrary deep When an exception is raised, control escapes out of an arbitrary deep
evaluation context to the point where the exception is caught---or all evaluation context to the point where the exception is caught---or all
the way out if the expression is never caught: the way out if the expression is never caught:

View File

@ -144,7 +144,10 @@ calls with keywords.}
@specform/subs[ @specform/subs[
(lambda gen-formals (lambda gen-formals
body ...+) body ...+)
([arg arg-id ([gen-formals (arg ...)
rest-id
(arg ...+ . rest-id)]
[arg arg-id
[arg-id default-expr] [arg-id default-expr]
(code:line arg-keyword arg-id) (code:line arg-keyword arg-id)
(code:line arg-keyword [arg-id default-expr])]) (code:line arg-keyword [arg-id default-expr])])

View File

@ -267,7 +267,7 @@ fails, because the namespace does not include the primitive modules on
which @scheme[scheme] is built. which @scheme[scheme] is built.
To make a namespace useful, some modules much be @deftech{attached} To make a namespace useful, some modules much be @deftech{attached}
from an existing namespace. Attaching a module adjust the mapping of from an existing namespace. Attaching a module adjusts the mapping of
module names to instances by transitively copying entries (the module module names to instances by transitively copying entries (the module
and all its imports) from an existing namespace's mapping. Normally, and all its imports) from an existing namespace's mapping. Normally,
instead of just attaching the primitive modules---whose names and instead of just attaching the primitive modules---whose names and

View File

@ -318,7 +318,7 @@ usual role in the generated macro, instead of the generating macro.
@section[#:tag "pattern-macro-example"]{Extended Example: Call-by-Reference Functions} @section[#:tag "pattern-macro-example"]{Extended Example: Call-by-Reference Functions}
We can use pattern-matching macros to implement add a form to Scheme We can use pattern-matching macros to add a form to Scheme
for defining first-order @deftech{call-by-reference} functions. When a for defining first-order @deftech{call-by-reference} functions. When a
call-by-reference function body mutates its formal argument, the call-by-reference function body mutates its formal argument, the
mutation applies to variables that are supplied as actual arguments in mutation applies to variables that are supplied as actual arguments in

View File

@ -47,7 +47,7 @@ more typically used for symbols and lists, which have other meanings
An expression An expression
@specform[(quote #,(scheme _datum))] @specform[(quote #, @schemevarfont{datum})]
is a shorthand for is a shorthand for

View File

@ -491,7 +491,7 @@ conveniences---such as allowing overriding of methods or especially
simple application to values---that make them suitable for different simple application to values---that make them suitable for different
purposes. purposes.
The @scheme[module] form is more fundamental that the others, in a The @scheme[module] form is more fundamental than the others, in a
sense. After all, a program fragment cannot reliably refer to sense. After all, a program fragment cannot reliably refer to
@scheme[lambda], @scheme[class], or @scheme[unit] form without the @scheme[lambda], @scheme[class], or @scheme[unit] form without the
namespace management provided by @scheme[module]. At the same time, namespace management provided by @scheme[module]. At the same time,

View File

@ -31,7 +31,7 @@ written directly as expressions are immutable.
Vector can be converted to lists and vice-versa via Vector can be converted to lists and vice-versa via
@scheme[list->vector] and @scheme[vector->list]; such conversions are @scheme[list->vector] and @scheme[vector->list]; such conversions are
particularly useful in combination with predefined procedures on particularly useful in combination with predefined procedures on
lists. When allocating extra lists seems too expensive, use consider lists. When allocating extra lists seems too expensive, consider
using looping forms like @scheme[fold-for], which recognize vectors as using looping forms like @scheme[fold-for], which recognize vectors as
well as lists. well as lists.