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[
|
@racketblock[
|
||||||
(let ([guard (current-security-guard)])
|
(let ([guard (current-security-guard)])
|
||||||
(call-in-sandbox-context
|
(call-in-sandbox-context
|
||||||
|
ev
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(parameterize ([current-security-guard guard])
|
(parameterize ([current-security-guard guard])
|
||||||
(code:comment @#,t{can access anything you want here})
|
(code:comment @#,t{can access anything you want here})
|
||||||
))))
|
(delete-file "/some/file")))))
|
||||||
]}
|
]}
|
||||||
|
|
||||||
@; ----------------------------------------------------------------------
|
@; ----------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user