fix string example in docs...
This commit is contained in:
parent
057f106167
commit
4a75b8a99b
|
@ -71,8 +71,10 @@ In addition to simply being a nice additional option to make literal strings, it
|
||||||
(require udelim)
|
(require udelim)
|
||||||
(parameterize ([current-readtable (make-string-delim-readtable #\« #\»)])
|
(parameterize ([current-readtable (make-string-delim-readtable #\« #\»)])
|
||||||
(read
|
(read
|
||||||
(open-input-string
|
(open-input-string #<<EOS
|
||||||
"«this is a string with nested «string delimiters.» No \n escape interpreting.»")))]
|
«this is a string with nested «string delimiters.» No \n escape interpreting.»
|
||||||
|
EOS
|
||||||
|
)))]
|
||||||
}
|
}
|
||||||
|
|
||||||
@defproc[(make-string-delim-readtable/wrap
|
@defproc[(make-string-delim-readtable/wrap
|
||||||
|
@ -88,8 +90,10 @@ Like @racket[make-string-delim-readtable], except that the result will be wrappe
|
||||||
(parameterize ([current-readtable
|
(parameterize ([current-readtable
|
||||||
(make-string-delim-readtable/wrap #\« #\» '#%guillemets)])
|
(make-string-delim-readtable/wrap #\« #\» '#%guillemets)])
|
||||||
(read
|
(read
|
||||||
(open-input-string
|
(open-input-string #<<EOS
|
||||||
"«this is a string with nested «string delimiters.» No \n escape interpreting.»")))]
|
«this is a string with nested «string delimiters.» No \n escape interpreting.»
|
||||||
|
EOS
|
||||||
|
)))]
|
||||||
}
|
}
|
||||||
|
|
||||||
@defproc[(stx-string->port [stx syntax?]) input-port?]{
|
@defproc[(stx-string->port [stx syntax?]) input-port?]{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user