fix assert

This commit is contained in:
gmega 2023-09-01 19:40:48 -03:00
parent 7ae6e6cf2d
commit 0522c1105f
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ template getDefault*[K, V](self: var Table[K, V], key: K, alias,
# like withValue, c is a pointer.
c[] += 1
echo table["hello"] # 2
doAssert table["hello"] == 2
self.withValue(key, v):
var alias {.inject.} = v