more refactoring
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user