Add note about untyped- in docs for next-prime and prev-prime

This commit is contained in:
Jens Axel Søgaard 2012-11-17 20:39:46 +01:00 committed by Neil Toronto
parent bbef490fb0
commit f208d0dae8

View File

@ -198,8 +198,8 @@ Returns the first prime larger than @racket[z].
(untyped-next-prime 4)
(untyped-next-prime 5)]
TODO: Figure out how to export next-prime even though
TR can't make contract automatically.
Note: Use @racket[next-prime] in Typed Racket and
@racket[untyped-next-prime] otherwise.
}
@defproc[(prev-prime [z Integer]) prime?]{
@ -209,8 +209,8 @@ Returns the first prime smaller than @racket[z].
(untyped-prev-prime 4)
(untyped-prev-prime 5)]
TODO: Figure out how to export prev-prime even though
TR can't make contract automatically.
Note: Use @racket[prev-prime] in Typed Racket and
@racket[untyped-prev-prime] otherwise.
}
@defproc[(next-primes [z Integer] [n Natural]) (Listof prime?)]{