Skip to content

Commit

Permalink
doc: deprecate order-of-magnitude
Browse files Browse the repository at this point in the history
Already provided by `racket/math`
  • Loading branch information
bennn committed Apr 26, 2018
1 parent d23a421 commit eedbb5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scribblings/gtp-util.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

@require[
scribble/example
(for-syntax
racket/base)
(for-label
file/glob
gtp-util/system
Expand All @@ -11,6 +13,7 @@
racket/contract
racket/path
(only-in racket/math natural?)
(prefix-in rkt: (only-in racket/math order-of-magnitude))
(only-in openssl/md5 md5))]

@(define (make-gtp-util-eval) (make-base-eval '(require gtp-util)))
Expand Down Expand Up @@ -109,6 +112,9 @@ If you think one of these functions should "graduate" to another library

@defproc[(order-of-magnitude [n real?]) natural?]{
Count the number of digits in the given number.

@(let-syntax ([order-of-magnitude (make-rename-transformer #'rkt:order-of-magnitude)])
@deprecated[#:what "function" @racket[order-of-magnitude]]{(from @racketmodname[racket/math])})
}

@defproc[(file-remove-extension [ps path-string?]) path-string?]{
Expand Down

0 comments on commit eedbb5f

Please sign in to comment.