From 756867495f43489b60062cac494a1eef38611bee Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Fri, 19 Aug 2022 18:19:45 +0200 Subject: [PATCH] Trie: Remove TODO comment --- trie.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trie.lua b/trie.lua index 1231fa1..3399b69 100644 --- a/trie.lua +++ b/trie.lua @@ -7,6 +7,8 @@ setfenv(1, _ENV) local metatable = {__index = _ENV} +-- Setting the metatable is fine as it does not contain single-character keys. +-- TODO (?) encapsulate in "root" field for better code quality? function new(table) return setmetatable(table or {}, metatable) end function insert(self, word, value, overwrite)