refine replace-context docs

svn: r14223
This commit is contained in:
Matthew Flatt 2009-03-23 01:25:45 +00:00
parent 547101ac5b
commit 75373d4094

View File

@ -2,7 +2,7 @@
@(require "common.ss"
(for-label syntax/strip-context))
@title[#:tag "strip-context"]{Stripping Lexical Context}
@title[#:tag "strip-context"]{Replacing Lexical Context}
@defmodule[syntax/strip-context]
@ -11,7 +11,7 @@
Removes all lexical context from @scheme[stx], preserving
source-location information and properties.}
@defproc[(replace-context [ctx-stx syntax?] [stx syntax?]) syntax?]{
@defproc[(replace-context [ctx-stx (or/c syntax? #f)] [stx syntax?]) syntax?]{
Uses the lexical context of @scheme[ctx-stx] to replace the lexical
context of all parts of @scheme[stx], preserving source-location