scribble/example: Don't inset twice when using alts with #:no-prompt

This commit is contained in:
Alexis King 2017-11-06 14:16:43 -08:00
parent 0d0fda8321
commit 10ce45004b
3 changed files with 10 additions and 1 deletions

View File

@ -732,7 +732,7 @@
(define-syntax racketblock*
(syntax-rules (eval:alts code:comment eval:check eval:no-prompt eval:error eval:result eval:results)
[(_ #:escape id (code:comment . rest)) (racketblock0 #:escape id (code:comment . rest))]
[(_ #:escape id (eval:alts a b)) (racketblock #:escape id a)]
[(_ #:escape id (eval:alts a b)) (racketblock* #:escape id a)]
[(_ #:escape id (eval:result a . _)) (racketinputblock #:escape id a)]
[(_ #:escape id (eval:results a . _)) (racketinputblock #:escape id a)]
[(_ #:escape id (eval:check a b)) (racketblock #:escape id a)]

View File

@ -91,3 +91,8 @@
@examples[
(eval:alts (/ 100 0) (eval:results (list "(/ 1 0)" "'=") "getting +inf.0" "oops"))
]
@examples[
#:no-prompt
(eval:alts (define x 42) (define x 42))
]

View File

@ -98,3 +98,7 @@ Example:
oops
(/ 1 0)
'=
Example:
(define x 42)