Fix the docs for `call-in-sandbox-context'.
Closes PR 12081.
This commit is contained in:
parent
a672704e5e
commit
b644e335d9
|
@ -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")))))
|
||||
]}
|
||||
|
||||
@; ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user