Fixed eval typo for real->decimal-string doc, added shared-eval to shared.scrbl.

svn: r8515
This commit is contained in:
Danny Yoo 2008-02-03 03:32:59 +00:00
parent ed6058025d
commit 3141700af2
2 changed files with 6 additions and 0 deletions

View File

@ -701,6 +701,7 @@ than @scheme[decimal-digits] digits after the decimal (and it is
padded with trailing zeros if necessary).
@examples[
#:eval math-eval
(real->decimal-string pi)
(real->decimal-string pi 5)
]}

View File

@ -4,6 +4,10 @@
scheme/shared
(for-label scheme/shared))
@(define shared-eval (make-base-eval))
@interaction-eval[#:eval shared-eval (require scheme/shared)]
@(define maker
(make-element #f (list
(schemevarfont "prefix:")
@ -90,6 +94,7 @@ all @scheme[id]s are bound, so @scheme[_patchable-expr]s also created
data cycles (but only with cycles that can be created via mutation).
@examples[
#:eval shared-eval
(shared ([a (cons 1 a)])
a)
(shared ([a (cons 1 b)]