From b592f069bbc2d30f11fd9414e149025653425dc0 Mon Sep 17 00:00:00 2001 From: Konstantin Molchanov Date: Wed, 27 Dec 2017 13:44:47 +0400 Subject: [PATCH] Tables: toCountTable: Update docs. --- lib/pure/collections/tables.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim index d8c133bce3..777beabc39 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