more refactoring

This commit is contained in:
2021-07-28 17:01:49 -07:00
parent bfd2868b87
commit 74795db477
7 changed files with 27 additions and 21 deletions

View File

@ -23,7 +23,7 @@ proc len(d: Dictionary): int =
proc loadWords(): Dictionary =
for word in staticRead("dictionary.txt").strip().splitLines():
for word in staticRead("../data/dictionary.txt").strip().splitLines():
let startIdx = result.words.len.uint32
result.offsets.add(startIdx)
result.words.add(word)