From a04272d245cbd2ef201cfdc506d07623d40db499 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sun, 27 Nov 2011 13:27:04 -0700 Subject: [PATCH] fix typo and text duplication --- collects/scribblings/reference/reader.scrbl | 2 +- collects/syntax/scribblings/module-reader.scrbl | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/collects/scribblings/reference/reader.scrbl b/collects/scribblings/reference/reader.scrbl index be45e357ac..5c272d766a 100644 --- a/collects/scribblings/reference/reader.scrbl +++ b/collects/scribblings/reference/reader.scrbl @@ -883,7 +883,7 @@ is equivalent to where @racket[_name-id] is derived from the source input port's name: if the port name is a filename path, the filename without its -directory path and extension is used for @racket[_name-in], otherwise +directory path and extension is used for @racket[_name-id], otherwise @racket[_name-id] is @racket[anonymous-module]. @subsection{Chaining Reader Language} diff --git a/collects/syntax/scribblings/module-reader.scrbl b/collects/syntax/scribblings/module-reader.scrbl index 2995024f54..a385c0c6ab 100644 --- a/collects/syntax/scribblings/module-reader.scrbl +++ b/collects/syntax/scribblings/module-reader.scrbl @@ -78,10 +78,8 @@ is read as (#%module-begin ....)) ] -where @racket[_name-id] is derived from the source input port's name: -if the port name is a filename path, the filename without its -directory path and extension is used for @racket[_name-in], otherwise -@racket[_name-id] is @racket[anonymous-module]. +where @racket[_name-id] is derived from the source input port's name +in the same way as for @racket[@#,hash-lang[] @#,racketmodname[s-exp]]. Keyword-based @racket[reader-option]s allow further customization, as listed below. Additional @racket[form]s are as in the body of @@ -407,7 +405,7 @@ various keywords to arbitrary readers; please use it instead.} Repeatedly calls @racket[read] on @racket[in] until an end of file, collecting the results in order into @racket[_lst], and derives a @racket[_name-id] from @racket[(object-name in)] in the same way as -@racketmodname[syntax/module-reader]. The last five arguments are +@racket[@#,hash-lang[] @#,racketmodname[s-exp]]. The last five arguments are used to construct the syntax object for the language position of the module. The result is roughly