From bf2b61dcb1b08ad3607b2828cf9d410bbe833842 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Thu, 7 Apr 2016 07:09:45 -0400 Subject: [PATCH 1/2] Fix format --- index.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.rkt b/index.rkt index dcc7dd3..28ec692 100644 --- a/index.rkt +++ b/index.rkt @@ -213,7 +213,7 @@ which is @tt{#'}: (quoted-foo) ] -We'll use the #' shorthand from now on. +We'll use the @tt{#'} shorthand from now on. Of course, we can emit syntax that is more interesting than a string literal. How about returning @racket[(displayln "hi")]? From f22c1b7da462317a744ba819d7f058f6644698b6 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Fri, 8 Apr 2016 07:39:38 -0400 Subject: [PATCH 2/2] Fix one more typographic glitch --- index.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.rkt b/index.rkt index 28ec692..91fc4a3 100644 --- a/index.rkt +++ b/index.rkt @@ -720,7 +720,7 @@ work it out. The "template" the error message refers to is the In fact, @racket[syntax-case] can have as many templates as you want. The obvious, required template is the final expression supplying -the output syntax. But you can use @racket[syntax] (a.k.a. #') on a +the output syntax. But you can use @racket[syntax] (a.k.a. @tt{#'}) on a pattern variable. This makes another template, albeit a small, "fun size" template. Let's try that: