commit 9fc96fc56e660254b336bab555a8a05e252065f4
parent d3b0f98e0e5ab8d2f35105b8552f52bf3c44c8b1
Author: Ben Greenman <benjaminlgreenman@gmail.com>
Date: Thu, 31 Aug 2017 00:29:37 -0400
doc: require 'scribble/example' in 'examples' example
Also increase the memory limit in the example.
(On my machine, this example fails if the memory limit is 37MB or less.)
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scribble-doc/scribblings/scribble/examples.scrbl b/scribble-doc/scribblings/scribble/examples.scrbl
@@ -177,10 +177,11 @@ As an example,
@codeblock|{
#lang scribble/manual
@(require racket/sandbox
- scribble/eval)
+ scribble/example)
@(define my-evaluator
(parameterize ([sandbox-output 'string]
- [sandbox-error-output 'string])
+ [sandbox-error-output 'string]
+ [sandbox-memory-limit 50])
(make-evaluator 'typed/racket/base)))
@examples[#:eval my-evaluator