diff options
author | flywind <xzsflywind@gmail.com> | 2021-06-03 10:59:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 22:59:06 -0400 |
commit | f27f3f65df0bab567cc416cd1332a502833bd12f (patch) | |
tree | 761794baecfa9d2390f4b827bcfef35ba722a49e /lib/pure/collections/hashcommon.nim | |
parent | 0de3d4292f328f94c7a94af7e3e61e58ff43a252 (diff) | |
download | Nim-f27f3f65df0bab567cc416cd1332a502833bd12f.tar.gz |
[std/hashcommon]improve docs a bit (#18153)
* reduce duplicated deprecated messages
Diffstat (limited to 'lib/pure/collections/hashcommon.nim')
-rw-r--r-- | lib/pure/collections/hashcommon.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/collections/hashcommon.nim b/lib/pure/collections/hashcommon.nim index 030446176..a169418ce 100644 --- a/lib/pure/collections/hashcommon.nim +++ b/lib/pure/collections/hashcommon.nim @@ -34,10 +34,10 @@ proc slotsNeeded(count: Natural): int {.inline.} = result = nextPowerOfTwo(count * 3 div 2 + 4) proc rightSize*(count: Natural): int {.inline, deprecated: "Deprecated since 1.4.0".} = - ## **Deprecated since Nim v1.4.0**, it is not needed anymore - ## because picking the correct size is done internally. + ## It is not needed anymore because + ## picking the correct size is done internally. ## - ## Return the value of `initialSize` to support `count` items. + ## Returns the value of `initialSize` to support `count` items. ## ## If more items are expected to be added, simply add that ## expected extra amount to the parameter before calling this. |