From 7603aa7907fa92336fd9f7702b709e559ee0191b Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Tue, 21 Feb 2017 11:23:04 -0800 Subject: [PATCH] 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 --- doc/effective_go.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index e3f3124631f..bbd7f24d483 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.