Fix the docs for `call-in-sandbox-context'.

Closes PR 12081.
This commit is contained in:
Eli Barzilay 2011-07-30 09:33:24 -04:00
parent a672704e5e
commit b644e335d9

View File

@ -878,10 +878,11 @@ your own permissions, for example,
@racketblock[
(let ([guard (current-security-guard)])
(call-in-sandbox-context
ev
(lambda ()
(parameterize ([current-security-guard guard])
(code:comment @#,t{can access anything you want here})
))))
(delete-file "/some/file")))))
]}
@; ----------------------------------------------------------------------