summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--racket.html.markdown3
1 files changed, 1 insertions, 2 deletions
diff --git a/racket.html.markdown b/racket.html.markdown
index e528bc74..526d008c 100644
--- a/racket.html.markdown
+++ b/racket.html.markdown
@@ -423,8 +423,7 @@ vec ; => #(1 2 3 4)
;; Macros are hygienic, you cannot clobber existing variables!
(define-syntax-rule (swap x y)
- (begin
- (define tmp x)
+ (let ([tmp x])
(set! x y)
(set! y tmp)))