doc: typo, '(failure-result/c any/c)' -> 'failure-result/c'

Both the implementation and docs for failure-result/c agree
 that it does not take a parameter:

- https://github.com/racket/racket/blob/master/racket/collects/racket/contract/base.rkt#L157
- https://github.com/racket/racket/blob/master/pkgs/racket-doc/scribblings/reference/contracts.scrbl#L3634

Thanks to @rfindler for pointing out the mistake
This commit is contained in:
Ben Greenman 2020-05-10 11:49:03 -04:00
parent b0e65199fd
commit 0e6415899b
3 changed files with 9 additions and 9 deletions

View File

@ -199,7 +199,7 @@ only supported for dictionary types that directly implement them.
@defproc[(dict-ref [dict dict?]
[key any/c]
[failure-result (failure-result/c any/c)
[failure-result failure-result/c
(lambda () (raise (make-exn:fail ....)))])
any]{
@ -491,7 +491,7 @@ Supported for any @racket[dict] that implements @racket[dict-ref] and
@defproc[(dict-update! [dict (and/c dict? (not/c immutable?))]
[key any/c]
[updater (any/c . -> . any/c)]
[failure-result (failure-result/c any/c)
[failure-result failure-result/c
(lambda () (raise (make-exn:fail ....)))]) void?]{
Composes @racket[dict-ref] and @racket[dict-set!] to update an
@ -517,7 +517,7 @@ v
@defproc[(dict-update [dict dict?]
[key any/c]
[updater (any/c . -> . any/c)]
[failure-result (failure-result/c any/c)
[failure-result failure-result/c
(lambda () (raise (make-exn:fail ....)))])
(and/c dict? immutable?)]{

View File

@ -254,7 +254,7 @@ later mappings overwrite earlier mappings.
@defproc[(hash-ref [hash hash?]
[key any/c]
[failure-result (failure-result/c any/c)
[failure-result failure-result/c
(lambda ()
(raise (make-exn:fail:contract ....)))])
any]{
@ -276,7 +276,7 @@ result:
@defproc[(hash-ref-key [hash hash?]
[key any/c]
[failure-result (failure-result/c any/c)
[failure-result failure-result/c
(lambda ()
(raise (make-exn:fail:contract ....)))])
any]{
@ -345,7 +345,7 @@ will be determined as described in the documentation to
@history[#:added "7.4.0.3"]}
@defproc[(hash-ref! [hash hash?] [key any/c] [to-set (failure-result/c any/c)])
@defproc[(hash-ref! [hash hash?] [key any/c] [to-set failure-result/c])
any]{
Returns the value for @racket[key] in @racket[hash]. If no value is
@ -368,7 +368,7 @@ Returns @racket[#t] if @racket[hash] contains a value for the given
@defproc[(hash-update! [hash (and/c hash? (not/c immutable?))]
[key any/c]
[updater (any/c . -> . any/c)]
[failure-result (failure-result/c any/c)
[failure-result failure-result/c
(lambda ()
(raise (make-exn:fail:contract ....)))])
void?]{
@ -385,7 +385,7 @@ concurrent updates.
@defproc[(hash-update [hash (and/c hash? immutable?)]
[key any/c]
[updater (any/c . -> . any/c)]
[failure-result (failure-result/c any/c)
[failure-result failure-result/c
(lambda ()
(raise (make-exn:fail:contract ....)))])
(and/c hash? immutable?)]{

View File

@ -1174,7 +1174,7 @@ traversal.
@defproc[(check-duplicates [lst list?]
[same? (any/c any/c . -> . any/c) equal?]
[#:key extract-key (-> any/c any/c) (lambda (x) x)]
[#:default failure-result (failure-result/c any/c) (lambda () #f)])
[#:default failure-result failure-result/c (lambda () #f)])
any]{
Returns the first duplicate item in @racket[lst]. More precisely, it