oops, no match available here
This commit is contained in:
parent
53cfbd27c1
commit
10cb0e61e2
|
@ -3,9 +3,9 @@
|
||||||
racket/serialize)
|
racket/serialize)
|
||||||
|
|
||||||
(define (read/string str)
|
(define (read/string str)
|
||||||
(match (read (open-input-string str))
|
(define r (read (open-input-string str)))
|
||||||
[(? eof-object? e) (raise-type-error 'read/string "nonempty string" str)]
|
(cond [(eof-object? r) (raise-type-error 'read/string "nonempty string" str)]
|
||||||
[other other]))
|
[else r]))
|
||||||
|
|
||||||
;; Eli: Same comments as `read/bytes'.
|
;; Eli: Same comments as `read/bytes'.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user