Fix a typo.
Closes PR 12456.
This commit is contained in:
parent
646403e9f6
commit
6dfcf68a12
|
@ -123,7 +123,7 @@ predicate:
|
||||||
|
|
||||||
When an exception is raised, control escapes out of an arbitrary deep
|
When an exception is raised, control escapes out of an arbitrary deep
|
||||||
evaluation context to the point where the exception is caught---or all
|
evaluation context to the point where the exception is caught---or all
|
||||||
the way out if the expression is never caught:
|
the way out if the exception is never caught:
|
||||||
|
|
||||||
@interaction[
|
@interaction[
|
||||||
(+ 1 (+ 1 (+ 1 (+ 1 (+ 1 (+ 1 (/ 1 0)))))))
|
(+ 1 (+ 1 (+ 1 (+ 1 (+ 1 (+ 1 (/ 1 0)))))))
|
||||||
|
@ -202,7 +202,7 @@ changing @racket[0] to grab the continuation before returning 0:
|
||||||
(define (save-it!)
|
(define (save-it!)
|
||||||
(call-with-composable-continuation
|
(call-with-composable-continuation
|
||||||
(lambda (k) (code:comment @#,t{@racket[k] is the captured continuation})
|
(lambda (k) (code:comment @#,t{@racket[k] is the captured continuation})
|
||||||
(set! saved-k k)
|
(set! saved-k k)
|
||||||
0)))
|
0)))
|
||||||
(+ 1 (+ 1 (+ 1 (save-it!))))
|
(+ 1 (+ 1 (+ 1 (save-it!))))
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user