From 25fbaad1ade4374024b85ab9f8e1653f6fc26dc1 Mon Sep 17 00:00:00 2001 From: Ben Greenman Date: Thu, 19 Apr 2018 11:48:47 -0400 Subject: [PATCH] guide: proofread section on instantiations and visits --- pkgs/racket-doc/scribblings/guide/macro-module.scrbl | 10 +++++----- pkgs/racket-doc/scribblings/guide/module-macro.scrbl | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/racket-doc/scribblings/guide/macro-module.scrbl b/pkgs/racket-doc/scribblings/guide/macro-module.scrbl index 387b4a9b75..f2c4855ab6 100644 --- a/pkgs/racket-doc/scribblings/guide/macro-module.scrbl +++ b/pkgs/racket-doc/scribblings/guide/macro-module.scrbl @@ -152,7 +152,7 @@ make compilation reliably separate and more deterministic. The expanded forms of @racket[use-p-at-compile-time] and @racket[use-p-again-at-compile-time] record the number that was -seelcted each time, so those two different numbes are printed when the +selected each time, so those two different numbers are printed when the modules are instantiated: @examples[ @@ -380,13 +380,13 @@ modules, but no modules were made newly available by simply evaluating When a module @racket[require]s another module using @racket[for-meta _n] for some @racket[_n] greater than 1, the @racket[require]d module is made @tech{available} at phase @racket[_n]. A module that is -@tech{available} at phase @racket[_n] is @tech{visit}ed some some +@tech{available} at phase @racket[_n] is @tech{visit}ed when some expression at phase @math{@racket[_n]-1} is expanded. To help illustrate, the following examples use @racket[(variable-reference->module-base-phase (#%variable-reference))], which returns a number for the phase at -which the enclosing module is instaniated: +which the enclosing module is instantiated: @examples[ @@ -420,7 +420,7 @@ following module includes a phase-1 expression after the phase-2 If we @racket[require] the module @racket[use-at-phase-1] at the top level, then @racket[show-phase] is made @tech{available} at phase 1. Evaluating another expression causes @racket[use-at-phase-1] to be -@tech{visit}ed, which in turn instanitates @racket[show-phase]: +@tech{visit}ed, which in turn instantitates @racket[show-phase]: @examples[ #:label #f @@ -431,7 +431,7 @@ Evaluating another expression causes @racket[use-at-phase-1] to be A @racket[require] of @racket[use-at-phase-2] is similar, except that @racket[show-phase] is made @tech{available} at phase 2, so it is not -instaniated until some expression is expanded at phase 1: +instantiated until some expression is expanded at phase 1: @examples[ #:label #f diff --git a/pkgs/racket-doc/scribblings/guide/module-macro.scrbl b/pkgs/racket-doc/scribblings/guide/module-macro.scrbl index 58e208cfc8..47e3193935 100644 --- a/pkgs/racket-doc/scribblings/guide/module-macro.scrbl +++ b/pkgs/racket-doc/scribblings/guide/module-macro.scrbl @@ -59,7 +59,7 @@ with (+ x y))] Since @racket[show-arguments] isn't provided by the @racket[noisy] -module, howevere, this literal textual replacement is not quite right. +module, however, this literal textual replacement is not quite right. The actual replacement correctly tracks the origin of identifiers like @racket[show-arguments], so they can refer to other definitions in the place where the macro is defined---even if those identifiers are not