[std/hashcommon]improve docs a bit (#18153)

* reduce duplicated deprecated messages
This commit is contained in:
flywind
2021-06-03 10:59:06 +08:00
committed by GitHub
parent 0de3d4292f
commit f27f3f65df

View File

@@ -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.