Skip to content

Commit

Permalink
Merge pull request #4964 from jangko/orderedtable_initialsize
Browse files Browse the repository at this point in the history
fixes #4940
  • Loading branch information
Araq committed Oct 27, 2016
2 parents cacbf8b + a42e9b1 commit 0f34196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/collections/tables.nim
Expand Up @@ -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`.
Expand Down

0 comments on commit 0f34196

Please sign in to comment.