mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 15:31:28 +00:00
committed by
Andreas Rumpf
parent
90fa64501f
commit
6ce6883fad
@@ -939,7 +939,7 @@ proc enlarge[A](t: var CountTable[A]) =
|
||||
|
||||
proc `[]=`*[A](t: var CountTable[A], key: A, val: int) =
|
||||
## puts a (key, value)-pair into `t`.
|
||||
assert val > 0
|
||||
assert val >= 0
|
||||
var h = rawGet(t, key)
|
||||
if h >= 0:
|
||||
t.data[h].val = val
|
||||
|
||||
Reference in New Issue
Block a user