From 08cc4dffb2ebdf5d60abce6a121adf32817b4fdb Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 3 Feb 2011 06:30:10 -0700 Subject: [PATCH] fix guide typos Closes PR 11700 Merge to 5.1 --- collects/scribblings/guide/match.scrbl | 6 +++--- collects/scribblings/guide/performance.scrbl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/collects/scribblings/guide/match.scrbl b/collects/scribblings/guide/match.scrbl index 426294d992..2918045db4 100644 --- a/collects/scribblings/guide/match.scrbl +++ b/collects/scribblings/guide/match.scrbl @@ -84,9 +84,9 @@ variables} that are bound in the result expressions: (match '(1 2) [(list x) (+ x 1)] [(list x y) (+ x y)]) -(match (make-hat 23 'bowler) - [(struct shoe (sz col)) sz] - [(struct hat (sz stl)) sz]) +(match (hat 23 'bowler) + [(shoe sz col) sz] + [(hat sz stl) sz]) ] An ellipsis, written @litchar{...}, act like a Kleene star within a diff --git a/collects/scribblings/guide/performance.scrbl b/collects/scribblings/guide/performance.scrbl index 396a46b3c5..e1db549753 100644 --- a/collects/scribblings/guide/performance.scrbl +++ b/collects/scribblings/guide/performance.scrbl @@ -64,10 +64,10 @@ The module system aids optimization by helping to ensure that identifiers have the usual bindings. That is, the @racket[+] provided by @racketmodname[racket/base] can be recognized by the compiler and inlined, which is especially important for @tech{JIT}-compiled code. -In contrast, in a traditional interactive Racket system, the top-level +In contrast, in a traditional interactive Scheme system, the top-level @racket[+] binding might be redefined, so the compiler cannot assume a fixed @racket[+] binding (unless special flags or declarations -act as a poor-man's module system to indicate otherwise). +are used to compensate for the lack of a module system). Even in the top-level environment, importing with @racket[require] enables some inlining optimizations. Although a @racket[+] definition