From 042402b02387db054aab9b87ce99e56d4fa3cb3c Mon Sep 17 00:00:00 2001 From: Ryan Culpepper Date: Thu, 12 May 2011 14:56:45 -0600 Subject: [PATCH] fix guide typos closes PR 10580 --- collects/scribblings/guide/contracts-examples.scrbl | 2 +- collects/scribblings/guide/define-struct.scrbl | 2 +- collects/scribblings/guide/for.scrbl | 2 +- collects/scribblings/guide/match.scrbl | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/collects/scribblings/guide/contracts-examples.scrbl b/collects/scribblings/guide/contracts-examples.scrbl index c89b9b99e1..c294ba76fd 100644 --- a/collects/scribblings/guide/contracts-examples.scrbl +++ b/collects/scribblings/guide/contracts-examples.scrbl @@ -39,7 +39,7 @@ Mitchell and McKim's principles for design by contract DbC are derived @item{@bold{For each command, write a post-condition contract that specifies the changes to the observable properties in terms of the basic queries.}} -@item{@bold{For each query and command, decide on suitable +@item{@bold{For each query and command, decide on a suitable pre-condition contract.}}] Each of the following sections corresponds to a chapter in diff --git a/collects/scribblings/guide/define-struct.scrbl b/collects/scribblings/guide/define-struct.scrbl index 3fa10e3411..b8ab2ce2b9 100644 --- a/collects/scribblings/guide/define-struct.scrbl +++ b/collects/scribblings/guide/define-struct.scrbl @@ -153,7 +153,7 @@ With a structure type definition like ] an instance of the structure type prints in a way that does not show -any information about the fields values. That is, structure types by +any information about the fields' values. That is, structure types by default are @deftech{opaque}. If the accessors and mutators of a structure type are kept private to a module, then no other module can rely on the representation of the type's instances. diff --git a/collects/scribblings/guide/for.scrbl b/collects/scribblings/guide/for.scrbl index 93d9814b3a..1ac52e8fac 100644 --- a/collects/scribblings/guide/for.scrbl +++ b/collects/scribblings/guide/for.scrbl @@ -62,7 +62,7 @@ see the kinds of sequence generators that make interesting examples. The @racket[in-range] function generates a sequence of numbers, given an optional starting number (which defaults to @racket[0]), a number -before which the sequences ends, and an optional step (which defaults +before which the sequence ends, and an optional step (which defaults to @racket[1]). Using a non-negative integer @racket[_k] directly as a sequence is a shorthand for @racket[(in-range _k)]. diff --git a/collects/scribblings/guide/match.scrbl b/collects/scribblings/guide/match.scrbl index 7025ba9f1a..9e96b1424f 100644 --- a/collects/scribblings/guide/match.scrbl +++ b/collects/scribblings/guide/match.scrbl @@ -89,10 +89,10 @@ variables} that are bound in the result expressions: [(hat sz stl) sz]) ] -An ellipsis, written @litchar{...}, act like a Kleene star within a +An ellipsis, written @litchar{...}, acts like a Kleene star within a list or vector pattern: the preceding sub-pattern can be used to match any number of times for any number of consecutive elements of the list -of vector. If a sub-pattern followed by an ellipsis includes a pattern +or vector. If a sub-pattern followed by an ellipsis includes a pattern variable, the variable matches multiple times, and it is bound in the result expression to a list of matches: