fix typos

This commit is contained in:
Matthew Flatt 2011-04-20 14:25:53 -06:00
parent e9dd7580a8
commit 499800d96e
2 changed files with 10 additions and 9 deletions

View File

@ -1,8 +1,9 @@
#lang scribble/doc #lang scribble/doc
@(require "mz.ss" @(require "mz.ss"
racket/class racket/class
(for-syntax racket/base) (for-syntax racket/base
(for-label racket/trait)) racket/serialize
racket/trait))
@(begin @(begin
@ -369,7 +370,7 @@ calling subclass augmentations of methods (see
@defform[(class superclass-expr class-clause ...)]{ @defform[(class superclass-expr class-clause ...)]{
Like @scheme[class*], but omits the @scheme[interface-expr]s, for the case that none are needed. Like @scheme[class*], but omits the @scheme[_interface-expr]s, for the case that none are needed.
@defexamples[ @defexamples[
#:eval class-eval #:eval class-eval
@ -639,20 +640,20 @@ Each @scheme[public], @scheme[override], @scheme[augment],
@scheme[public-final], @scheme[override-final], @scheme[public-final], @scheme[override-final],
@scheme[augment-final], and @scheme[private] clause in a class @scheme[augment-final], and @scheme[private] clause in a class
declares one or more method names. Each method name must have a declares one or more method names. Each method name must have a
corresponding @scheme[method-definition]. The order of corresponding @scheme[_method-definition]. The order of
@scheme[public], @|etc|, clauses and their corresponding definitions @scheme[public], @|etc|, clauses and their corresponding definitions
(among themselves, and with respect to other clauses in the class) (among themselves, and with respect to other clauses in the class)
does not matter. does not matter.
As shown in the grammar for @scheme[class*], a method definition is As shown in the grammar for @scheme[class*], a method definition is
syntactically restricted to certain procedure forms, as defined by the syntactically restricted to certain procedure forms, as defined by the
grammar for @scheme[method-procedure]; in the last two forms of grammar for @scheme[_method-procedure]; in the last two forms of
@scheme[method-procedure], the body @scheme[id] must be one of the @scheme[_method-procedure], the body @scheme[id] must be one of the
@scheme[id]s bound by @scheme[let-values] or @scheme[letrec-values]. A @scheme[id]s bound by @scheme[let-values] or @scheme[letrec-values]. A
@scheme[method-procedure] expression is not evaluated @scheme[_method-procedure] expression is not evaluated
directly. Instead, for each method, a class-specific method procedure directly. Instead, for each method, a class-specific method procedure
is created; it takes an initial object argument, in addition to the is created; it takes an initial object argument, in addition to the
arguments the procedure would accept if the @scheme[method-procedure] arguments the procedure would accept if the @scheme[_method-procedure]
expression were evaluated directly. The body of the procedure is expression were evaluated directly. The body of the procedure is
transformed to access methods and fields through the object argument. transformed to access methods and fields through the object argument.

View File

@ -110,7 +110,7 @@ elements:
@tech{unreadable symbol}. These two are used with either @tech{unreadable symbol}. These two are used with either
@scheme[namespace-variable-binding] or @scheme[dynamic-require] @scheme[namespace-variable-binding] or @scheme[dynamic-require]
to obtain deserialization information. See to obtain deserialization information. See
@scheme[make-deserialization-info] for more information on the @scheme[make-deserialize-info] for more information on the
binding's value. See also @scheme[deserialize-module-guard].} binding's value. See also @scheme[deserialize-module-guard].}
@item{A non-negative exact integer, @scheme[_g-count] that represents the @item{A non-negative exact integer, @scheme[_g-count] that represents the