mirror of
https://github.com/logos-storage/swarmsim.git
synced 2026-01-02 13:53:07 +00:00
fix assert
This commit is contained in:
parent
7ae6e6cf2d
commit
0522c1105f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user