From: Kevin Burke Date: Tue, 21 Feb 2017 19:23:04 +0000 (-0800) Subject: doc: use appropriate type to describe return value X-Git-Tag: go1.9beta1~1475 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7603aa7907fa92336fd9f7702b709e559ee0191b;p=gostls13.git doc: use appropriate type to describe return value Fixes #19223. Change-Id: I4cc8e81559a1313e1477ee36902e1b653155a888 Reviewed-on: https://go-review.googlesource.com/37374 Reviewed-by: Ian Lance Taylor Reviewed-by: Rob Pike --- diff --git a/doc/effective_go.html b/doc/effective_go.html index e3f3124631..bbd7f24d48 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1580,7 +1580,7 @@ if attended[person] { // will be false if person is not in the map

Sometimes you need to distinguish a missing entry from a zero value. Is there an entry for "UTC" -or is that the empty string because it's not in the map at all? +or is that 0 because it's not in the map at all? You can discriminate with a form of multiple assignment.