fixed two uses of raise-type-error (PR 10208)
svn: r14555
This commit is contained in:
parent
c33870fa04
commit
3b39cfc4b8
|
@ -150,7 +150,7 @@
|
||||||
[(dict-struct? d)
|
[(dict-struct? d)
|
||||||
((get-dict-ref (dict-struct-ref d)) d key)]
|
((get-dict-ref (dict-struct-ref d)) d key)]
|
||||||
[else
|
[else
|
||||||
(raise-type-error 'dict-ref 'dict 0 d key)])]
|
(raise-type-error 'dict-ref "dict" 0 d key)])]
|
||||||
[(d key default)
|
[(d key default)
|
||||||
(cond
|
(cond
|
||||||
[(hash? d) (hash-ref d key default)]
|
[(hash? d) (hash-ref d key default)]
|
||||||
|
@ -170,7 +170,7 @@
|
||||||
[(dict-struct? d)
|
[(dict-struct? d)
|
||||||
((get-dict-ref (dict-struct-ref d)) d key default)]
|
((get-dict-ref (dict-struct-ref d)) d key default)]
|
||||||
[else
|
[else
|
||||||
(raise-type-error 'dict-ref 'dict 0 d key default)])]))
|
(raise-type-error 'dict-ref "dict" 0 d key default)])]))
|
||||||
|
|
||||||
(define (dict-set! d key val)
|
(define (dict-set! d key val)
|
||||||
(cond
|
(cond
|
||||||
|
|
Loading…
Reference in New Issue
Block a user