diff options
| author | Andrew Gerrand <adg@golang.org> | 2016-04-05 11:29:00 +1000 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2016-04-06 00:12:20 +0000 |
| commit | 3a15becf84a89b118aa71569615e633e4a252d7b (patch) | |
| tree | e62999c9710f422605bf0f16aee95c8708bc709e | |
| parent | 3010115dcc12c8fe09b328ce21060af4337de1f7 (diff) | |
| download | golang-id-tour-3a15becf84a89b118aa71569615e633e4a252d7b.tar.xz | |
content: revise description of map creation
Change-Id: If81d061de18fd3a8a190c04d3232e8bc247277e8
Reviewed-on: https://go-review.googlesource.com/21449
Reviewed-by: Chris Broadfoot <cbro@golang.org>
Reviewed-by: Ralph Corderoy <ralph@inputplus.co.uk>
| -rw-r--r-- | content/moretypes.article | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/moretypes.article b/content/moretypes.article index e89a962..9cac743 100644 --- a/content/moretypes.article +++ b/content/moretypes.article @@ -194,9 +194,11 @@ 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 initialized before use; the `nil` map is empty and cannot be written to. +The zero value of a map is `nil`. +A `nil` map has no keys, nor can they be added. -The `make` function initializes an empty map of the given type. +The `make` function returns a map of the given type, +initialized and ready for use. .play moretypes/maps.go |
