spelling: use ?download-to.

db4
John Benediktsson 2014-06-09 08:58:05 -07:00
parent 1701fe3f59
commit 9ef4a4aab3
1 changed files with 2 additions and 3 deletions

View File

@ -59,9 +59,8 @@ CONSTANT: ALPHABET "abcdefghijklmnopqrstuvwxyz"
ascii file-contents words histogram ;
MEMO: default-dictionary ( -- counts )
"big.txt" temp-file dup exists?
[ URL" http://norvig.com/big.txt" over download-to ] unless
load-dictionary ;
URL" http://norvig.com/big.txt" "big.txt" temp-file
[ ?download-to ] [ load-dictionary ] bi ;
: (correct) ( word dictionary -- word/f )
corrections ?first ;