From 3ddc1ca367d07648f0f71d5e3354521ae147aafd Mon Sep 17 00:00:00 2001 From: sorawee Date: Wed, 11 Mar 2020 08:47:09 -0700 Subject: [PATCH] Fix typos (protect-syntax -> syntax-protect) (#3069) --- pkgs/racket-doc/scribblings/guide/syntax-taints.scrbl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/racket-doc/scribblings/guide/syntax-taints.scrbl b/pkgs/racket-doc/scribblings/guide/syntax-taints.scrbl index 13cca1efa8..85d83aac81 100644 --- a/pkgs/racket-doc/scribblings/guide/syntax-taints.scrbl +++ b/pkgs/racket-doc/scribblings/guide/syntax-taints.scrbl @@ -240,17 +240,17 @@ racket (define-syntax (def-go stx) (syntax-case stx () [(_ go) - (protect-syntax + (syntax-protect #'(define-syntax (go stx) (syntax-case stx () [(_ x) - (protect-syntax #'(unchecked-go 8 x))])))])) + (syntax-protect #'(unchecked-go 8 x))])))])) ] When @racket[def-go] is used inside another module to define @racket[go], and when the @racket[go]-defining module is at a different protection level than the @racket[def-go]-defining module, the -generated macro's use of @racket[protect-syntax] is not right. The +generated macro's use of @racket[syntax-protect] is not right. The use of @racket[unchecked-go] should be protected at the level of the @racket[def-go]-defining module, not the @racket[go]-defining module. @@ -271,7 +271,7 @@ racket (define-syntax (def-go stx) (syntax-case stx () [(_ go) - (protect-syntax + (syntax-protect #'(define-syntax (go stx) (syntax-case stx () [(_ x)