diff --git a/scribblings/cache.scrbl b/scribblings/cache.scrbl index aad6862..95bb524 100644 --- a/scribblings/cache.scrbl +++ b/scribblings/cache.scrbl @@ -16,7 +16,7 @@ If, like Ricky Bobby and me, you want to go fast, then try using more caches. Th procedure?] Make a caching version of @racket[_proc]. This means a hash table will be attached to @racket[_proc], and result values will automatically be saved & retrieved. The arguments to the procedure are used as the hash key. -In the example below, notice that both invocations of @racketfont{slow-op} take approximately the same time, whereas the second invocation of @racketfont{fast-op} uses the cache instead and thus is nearly instantaneous. +In the example below, notice that both invocations of @racketfont{slow-op} take approximately the same time, whereas the second invocation of @racketfont{fast-op} gets its value from the cache, and is thus nearly instantaneous. @examples[#:eval my-eval (define (slow-op x) (for/sum ([i (in-range 100000000)]) i)) diff --git a/scribblings/debug.scrbl b/scribblings/debug.scrbl index cc1656d..6221964 100644 --- a/scribblings/debug.scrbl +++ b/scribblings/debug.scrbl @@ -64,7 +64,7 @@ Evaluates @racket[_expr] repeatedly — @racket[_num] times, in fact — and r @defform[(time-repeat num expr ...)] -Shorthand for using @racket[time] with @racket[repeat]. Repeats the whole list of expressions and returns the total time. +Shorthand for using @racket[time] with @racket[repeat]. Repeats the whole list of expressions, prints the total time, and returns the last value. @examples[#:eval my-eval (time-repeat 1000