mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 10:52:14 +00:00
fixes #4940
This commit is contained in:
@@ -756,7 +756,7 @@ proc newOrderedTable*[A, B](initialSize=64): OrderedTableRef[A, B] =
|
||||
## values for this you could use the ``nextPowerOfTwo`` proc from the
|
||||
## `math <math.html>`_ module or the ``rightSize`` proc from this module.
|
||||
new(result)
|
||||
result[] = initOrderedTable[A, B]()
|
||||
result[] = initOrderedTable[A, B](initialSize)
|
||||
|
||||
proc newOrderedTable*[A, B](pairs: openArray[(A, B)]): OrderedTableRef[A, B] =
|
||||
## creates a new ordered hash table that contains the given `pairs`.
|
||||
|
||||
Reference in New Issue
Block a user