Fix contract error in in-vector documentation example

This commit is contained in:
Alexis King 2015-06-03 19:42:50 -07:00 committed by Robby Findler
parent 391a672bf6
commit 495784ed49

View File

@ -244,7 +244,7 @@ each element in the sequence.
@interaction[#:eval sequence-evaluator
(define (histogram vector-of-words)
(define a-hash (hash))
(define a-hash (make-hash))
(for ([word (in-vector vector-of-words)])
(hash-set! a-hash word (add1 (hash-ref a-hash word 0))))
a-hash)