summary refs log tree commit diff stats
path: root/lib/pure/collections/tables.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <ar@kimeta.de>2014-04-13 00:22:07 +0200
committerAndreas Rumpf <ar@kimeta.de>2014-04-13 00:22:07 +0200
commit3ee25170c3456640253b1d6ea7ffaaf3de88478f (patch)
tree1e1603880314bb0e628291aef1fd501bc6dee564 /lib/pure/collections/tables.nim
parent587f0bd0863b381f5d0045fefedac92e3c504bde (diff)
downloadNim-3ee25170c3456640253b1d6ea7ffaaf3de88478f.tar.gz
fixes '==' for TTTable
Diffstat (limited to 'lib/pure/collections/tables.nim')
-rw-r--r--lib/pure/collections/tables.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim
index 112f41c66..412bebeee 100644
--- a/lib/pure/collections/tables.nim
+++ b/lib/pure/collections/tables.nim
@@ -194,7 +194,7 @@ proc `==`*[A, B](s, t: TTable[A, B]): bool =
   if s.counter == t.counter:
     # different insertion orders mean different 'data' seqs, so we have
     # to use the slow route here:
-    for key, val in a:
+    for key, val in s:
       if not hasKey(t, key): return false
       if mget(t, key) != val: return false
     return true