aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2016-04-04 11:46:10 +1000
committerAndrew Gerrand <adg@golang.org>2016-04-04 02:31:04 +0000
commit3010115dcc12c8fe09b328ce21060af4337de1f7 (patch)
tree9a424069ae7994f5a0880a8d75f657656d02a06d
parenta8d65457e89c62c23747e5794f35b360cc69b4ab (diff)
downloadgolang-id-tour-3010115dcc12c8fe09b328ce21060af4337de1f7.tar.xz
content: clarify that make is just one way of creating a map
Fixes golang/go#15083 Change-Id: I5c611a6bd702464d8d1afe7c7b0ca18ef077e206 Reviewed-on: https://go-review.googlesource.com/21443 Reviewed-by: Chris Broadfoot <cbro@golang.org>
-rw-r--r--content/moretypes.article4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/moretypes.article b/content/moretypes.article
index e314a2c..e89a962 100644
--- a/content/moretypes.article
+++ b/content/moretypes.article
@@ -194,7 +194,9 @@ The choice of image is up to you. Interesting functions include `(x+y)/2`, `x*y`
A map maps keys to values.
-Maps must be created with `make` before use; the `nil` map is empty and cannot be assigned to.
+Maps must be initialized before use; the `nil` map is empty and cannot be written to.
+
+The `make` function initializes an empty map of the given type.
.play moretypes/maps.go