Skip to content

Commit

Permalink
Same as 277b940
Browse files Browse the repository at this point in the history
  • Loading branch information
c-blake committed Nov 24, 2024
1 parent 277b940 commit 8f3c19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adix/ditab.nim
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ proc hasKeyOrPut*[K,V](t: var DITab[K,V], key: K, val: V): bool {.inline.} =
proc getOrDefault*[K,V](t: DITab[K,V], key: K, def=default(V)): V {.inline.} =
mixin rawGet
let i = t.rawGet(key)
result = if i >= 0: t.data[i].val else: default
result = if i >= 0: t.data[i].val else: def

proc del*[K,V](t: var DITab[K,V], key: K) {.inline.} =
## delete one key `key` from `t`; If you want to know if it was present then
Expand Down

0 comments on commit 8f3c19f

Please sign in to comment.