]> Cypherpunks repositories - gostls13.git/commit
reflect: match MakeMapWithSize docs about initial capacity with spec
authorEmmanuel Odeke <emm.odeke@gmail.com>
Wed, 21 Jun 2017 06:35:18 +0000 (00:35 -0600)
committerRuss Cox <rsc@golang.org>
Thu, 6 Jul 2017 04:04:20 +0000 (04:04 +0000)
commit79e1505e3b328e3623bd2e0c563fac65ac771612
tree675862a7f32bfdfddb55618e914c70c70e4944af
parent4e2eff4c9b7a4c67c7c0af5f226f3292065c9dca
reflect: match MakeMapWithSize docs about initial capacity with spec

Following the spec clarification in CL 40393, copy that text
to reflect docs to state that the initial capacity of MakeMapWithSize
is a hint/approximate.

Fixes #19903

Change-Id: I6b3315b8183cafaa61fbb2839a4e42b76fd71544
Reviewed-on: https://go-review.googlesource.com/46270
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/reflect/value.go