summary refs log tree commit diff stats
path: root/lib/pure/collections
diff options
context:
space:
mode:
authorKonstantin Molchanov <moigagoo@live.com>2017-12-27 13:44:47 +0400
committerKonstantin Molchanov <moigagoo@live.com>2017-12-27 13:44:47 +0400
commitb592f069bbc2d30f11fd9414e149025653425dc0 (patch)
tree7d4b7ea6631556b164641ca8831c4d0496556d4a /lib/pure/collections
parentc36d7ffc7c771fcece05bf882fee02fae4261edf (diff)
downloadNim-b592f069bbc2d30f11fd9414e149025653425dc0.tar.gz
Tables: toCountTable: Update docs.
Diffstat (limited to 'lib/pure/collections')
-rw-r--r--lib/pure/collections/tables.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim
index d8c133bce..777beabc3 100644
--- a/lib/pure/collections/tables.nim
+++ b/lib/pure/collections/tables.nim
@@ -966,7 +966,8 @@ proc initCountTable*[A](initialSize=64): CountTable[A] =
   newSeq(result.data, initialSize)
 
 proc toCountTable*[A](keys: openArray[A]): CountTable[A] =
-  ## creates a new count table with every key in `keys` having a count of 1.
+  ## creates a new count table with every key in `keys` having a count
+  ## of how many times it occurs in `keys`.
   result = initCountTable[A](rightSize(keys.len))
   for key in items(keys): result.inc key