scribble/example: Don't inset twice when using alts with #:no-prompt
This commit is contained in:
parent
0d0fda8321
commit
10ce45004b
|
@ -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)]
|
||||
|
|
|
@ -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))
|
||||
]
|
||||
|
|
|
@ -98,3 +98,7 @@ Example:
|
|||
oops
|
||||
(/ 1 0)
|
||||
'=
|
||||
|
||||
Example:
|
||||
|
||||
(define x 42)
|
||||
|
|
Loading…
Reference in New Issue
Block a user