From 19335016586465908499f044d9f224749dbe2cd4 Mon Sep 17 00:00:00 2001 From: Ben Greenman Date: Mon, 25 Sep 2017 16:35:23 -0400 Subject: [PATCH] doc: fix hash-union contracts Changed to match `hash-set` and `hash-set!` contracts - `hash-can-functional-set?` => `immutable? - `hash-mutable?` => `(not/c immutable?)` --- pkgs/racket-doc/scribblings/reference/hashes.scrbl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/racket-doc/scribblings/reference/hashes.scrbl b/pkgs/racket-doc/scribblings/reference/hashes.scrbl index 639c3e0976..fa74682f01 100644 --- a/pkgs/racket-doc/scribblings/reference/hashes.scrbl +++ b/pkgs/racket-doc/scribblings/reference/hashes.scrbl @@ -572,7 +572,7 @@ for use in double hashing.} @(define the-eval (make-base-eval)) @(the-eval '(require racket/hash)) -@defproc[(hash-union [h0 (and/c hash? hash-can-functional-set?)] +@defproc[(hash-union [h0 (and/c hash? immutable?)] [h hash?] ... [#:combine combine (-> any/c any/c any/c) @@ -580,7 +580,7 @@ for use in double hashing.} [#:combine/key combine/key (-> any/c any/c any/c any/c) (lambda (k a b) (combine a b))]) - (and/c hash? hash-can-functional-set?)]{ + (and/c hash? immutable?)]{ Computes the union of @racket[h0] with each hash table @racket[h] by functional update, adding each element of each @racket[h] to @racket[h0] in turn. For each @@ -600,7 +600,7 @@ key @racket[k] and value @racket[v], if a mapping from @racket[k] to some value } -@defproc[(hash-union! [h0 (and/c hash? hash-mutable?)] +@defproc[(hash-union! [h0 (and/c hash? (not/c immutable?))] [h hash?] ... [#:combine combine (-> any/c any/c any/c)